I am having an issue with Windows 8 apps and obtaining a steam from the opened file. There are other ways to approach reading/writing a file in Windows 8, but for the sake of being able to pull out a standard stream I am trying to see if I can. So far no good. The issue is that System.IO.BufferedStream is not part of System.IO in Windows 8 apps. Thus the following code:
(MemoryStream)(await (await installedLocation.GetFileAsync("SOMEFILE")).OpenStreamForWriteAsync());
My apologies for the condensed code. The above code throws the mentioned exception. The issue, once again, is I cannot create a buffered stream. I was wondering if there was some way around this.
Any help is greatly appreciated!
Here is the code i use for Reading/Writing a file in Windows 8. It works and i hope it helps you too.