StreamReader(string) does not exist in .NET 4.5 for Metro when it is supposed to?

前端 未结 1 2016
萌比男神i
萌比男神i 2021-01-17 18:50

According to: http://msdn.microsoft.com/en-us/library/windows/apps/system.io.streamreader.aspx

And: http://msdn.microsoft.com/en-us/library/windows/apps/f2ke0fzy.asp

1条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-17 18:55

    "This is one of the fundamental changes in WinRT. You can't just write a file anywhere you want anymore, you have to use isolated storage. And you need to use asynchronous I/O with the await keyword."

    This link should provide you with the necessary information on how to access files in your project folder. Here is the link:

    http://blog.jerrynixon.com/2012/06/windows-8-how-to-read-files-in-winrt.html

    0 讨论(0)
提交回复
热议问题