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; ...

Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.