How to read file (Metro/WinRT)

前端 未结 4 1801
再見小時候
再見小時候 2021-01-04 03:09

I\'m quite astounded by the apparent complexity of this seemingly simple task. I know that I have to use the StorageFile class, and I\'ve found this example, bu

4条回答
  •  臣服心动
    2021-01-04 03:44

    You can use the FileIO class like so.

    public async void Read(IStorageFile file)
    {
        var lines = await FileIO.ReadLinesAsync(file);
    
    }
    

提交回复
热议问题