I have to read the text content from an .txt
file, this file is located in app installed folder, in a subfolder, according to Microsoft docs, I am doing it like
GetFileAsync will take relative path in form folder/fileName
. You can also get folder first and than file or use GetItemAsync
StorageFolder appFolder = Windows.ApplicationModel.Package.Current.InstalledLocation;
// Get a file from a subfolder of the current folder
// by providing a relative path.
string image = @"Assets\Logo.scale-100.png";
var logoImage = await appFolder.GetFileAsync(image);