8.0 File system: Storagefolder, Storagefile, referencing files via Uri, obtaining files in SD card
Introduced
Unique Windows Phone 8.0 file system
Read and write files through Storagefolder and Storagefile
referencing files by Uri
Get the contents of the SD card
Example
1. Demonstrates how to read and write files through Storagefolder and Storagefile
Filesystem/readwritedemo.xaml
<phone:phoneapplicationpage x:class= "Demo.FileSystem.ReadWriteDemo" xmlns= "Http://schemas.microsoft.com/winfx /2006/xaml/presentation "xmlns:x=" Http://schemas.microsoft.com/winfx/2006/xaml "xmlns:phone=" Clr-namespace: Microsoft.phone.controls;assembly=microsoft.phone "Xmlns:shell=" clr-namespace:microsoft.phone.shell;assembly= Microsoft.phone "xmlns:d=" http://schemas.microsoft.com/expression/blend/2008 "xmlns:mc=" http:// schemas.openxmlformats.org/markup-compatibility/2006 "fontfamily=" {StaticResource PhoneFontFamilyNormal} "FontSiz E= ' {StaticResource phonefontsizenormal} ' foreground= ' {StaticResource Phoneforegroundbrush} ' SupportedOrientations= "Portrait" orientation= "Portrait" mc:ignorable= "D" shell:systemtray.isvisible= "True" > <grid Backgro und= "Transparent" > <stackpanel orientation= "Vertical" > <textblock x:name= "lblmsg"/&G
T <button x:name= "Btnwrite" content= "Write file"click=" Btnwrite_click "/> <button x:name=" Btnread "content=" read Files "click=" Btnread_click "/> </StackPanel> </Grid> </phone:PhoneApplicationPage>