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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.