다른 UWP 응용 프로그램에 저장된 데이터에 액세스하지 못했습니다.다른 UWP 응용 프로그램에서 데이터 가져 오기
Windows.Storage.ApplicationDataContainer localSettings = Windows.Storage.ApplicationData.Current.LocalSettings;
Windows.Storage.StorageFolder localFolder = Windows.Storage.ApplicationData.Current.LocalFolder;
Windows.Globalization.DateTimeFormatting.DateTimeFormatter formatter =
new Windows.Globalization.DateTimeFormatting.DateTimeFormatter("longtime");
StorageFile sampleFile = await localFolder.CreateFileAsync("example.txt",
CreationCollisionOption.ReplaceExisting);
await FileIO.WriteTextAsync(sampleFile, formatter.Format(DateTime.Now));
Here is the official documentation을 : 나는이 코드를 사용하여 UWP 응용 프로그램의 LocalState
폴더에 데이터를 저장할 수 있음을 보았다.
그래서이 코드를 사용하여 첫 번째 UWP 프로젝트에 example.txt라는 파일을 만듭니다.
두 번째 UWP 프로젝트에서 example.txt에 액세스 할 수 있습니까? 그렇다면 어떻게?
덕분에 내가 무엇을 찾고있어 많은! – fandro