O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Introducing the WinPRT Windows Storage API

The Windows Storage API resembles the Isolated Storage API with one key difference: the API is predominately asynchronous, with the majority of its methods being awaitable.

The Windows Storage API is located in the Windows.Storage namespace.

The StorageFolder and StorageFile classes underpin the Windows Storage API and represent folders and files within the local folder.

To retrieve the StorageFolder representing the local folder of your app, use the ApplicationData.Current.LocalFolder property. Observe the following method, which writes some text to a new file in the local folder:

async void SaveSampleFile(){    string assemblyName = Assembly.GetExecutingAssembly().FullName; ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required