1
처음으로 텍스트 파일을 읽을 수 있습니다. 다음 번에 동일한 텍스트 파일을 읽으려고하면 함수를 종료하고 null 값을 반환합니다.메트로 앱에서 텍스트 파일을 읽을 수 없습니까?
static string configData = "";
async public void readtextFile(string folder, string file)
{
StorageFolder storageFolder = await Package.Current.InstalledLocation.GetFolderAsync(folder);
StorageFile storageFile = await storageFolder.GetFileAsync(file);
configData = await FileIO.ReadTextAsync(storageFile);
}
readtextFile
비동기 방법임을 잊지 마세요이 문제 ..
감사 SheikAbdullah
많이 고마워요.이게 내 문제를 해결합니다 .... – SheikAbdullah