The ApplicationData.Current.LocalFolder api allows us to get access to the application cache :
var file = await ApplicationData.Current.LocalFolder.CreateFileAsync("myFile.dat", CreationCollisionOption.ReplaceExisting);
The FileIO class contains a set of utility methods to easily add data to a file :
await FileIO.WriteBytesAsync(file, array);
await FileIO.AppendTextAsync(file, "text");
await FileIO.WriteBufferAsync(file, iBuffer);