Skip to content

Instantly share code, notes, and snippets.

@tianhonghui
Created May 22, 2014 08:55
Show Gist options
  • Save tianhonghui/d9a9711a3f2c2819a1a1 to your computer and use it in GitHub Desktop.
Save tianhonghui/d9a9711a3f2c2819a1a1 to your computer and use it in GitHub Desktop.
write bytes to file
var file = await Windows.Storage.ApplicationData.Current.LocalFolder.CreateFileAsync("MyWav.wav", Windows.Storage.CreationCollisionOption.ReplaceExisting);
await Windows.Storage.FileIO.WriteBytesAsync(file, buffer);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment