Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个StorageFile我试图读入字符串的对象(出于调试目的)。最简单的方法是什么?
StorageFile
在 C# 中:
string text = await Windows.Storage.FileIO.ReadTextAsync(storageFile);
在 JavaScript 中:
var text = Windows.Storage.FileIO.readTextAsync(storageFile).then(file => do_stuff(file))