将 StorageFile 端到端读入字符串的最简单方法?

Simplest way to read a StorageFile end-to-end into a string?

我有一个 StorageFile 对象,我正试图读入一个字符串(用于调试目的)。最简单的方法是什么?

在 C# 中:

string text = await Windows.Storage.FileIO.ReadTextAsync(storageFile);

在JavaScript中:

var text = Windows.Storage.FileIO.readTextAsync(storageFile).then(file => do_stuff(file))