/// <summary> /// GetDataFile gets the datafile 'SearchesData.xml' from the /// local folder /// </summary> /// <returns>Returns a Windows.Storage.StorageFile instance.</returns> /// <remarks> /// It is an asynchronous static method. /// </remarks> public static async Task <StorageFile> GetDataFile() { StorageFile dataFile = null; var localFolder = FileIOHelper.GetLocalFolder(); dataFile = await FileIOHelper.GetFile(_dataFileName, localFolder); return(dataFile); }
/// <summary> /// GetDataFile gets the datafile 'LibraryData.txt' from the /// Assets folder within the installed location of the /// application /// </summary> /// <returns>Returns a Windows.Storage.StorageFile instance.</returns> /// <remarks> /// It is an asynchronous static method. /// </remarks> public static async Task <StorageFile> GetDataFile() { StorageFile dataFile = null; var installFolder = FileIOHelper.GetInstallFolder(); var assetsFolder = await FileIOHelper.GetSubFolder(_assetsFolder, installFolder); dataFile = await FileIOHelper.GetFile(_dataFileName, assetsFolder); return(dataFile); }