Figured it out. I had correctly set my .rtf file to Copy to output dir: Copy Always
, but had forgotten to change its Build Action
to Content
.
The below code now works just fine.
StorageFolder folder = Windows.ApplicationModel.Package.Current.InstalledLocation;
folder = await folder.GetFolderAsync("MyFolder");
StorageFile file= await folder.GetFileAsync("MyFile.rtf");
string rtfString = await Windows.Storage.FileIO.ReadTextAsync(file);