mercredi 8 février 2017

Get data from another UWP application

Vote count: 0

I wan't to access data stored in another UWP application. I saw that you can save data in the LocalState folder of your UWP application using this code :

 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 the official documentation : http://ift.tt/2k2ownc

So with this code I create a file called example.txt in my first UWP project.

So my question is :

Is it possible to get access to the example.txt from a second UWP project ? If yes, how ?

asked 32 secs ago

Let's block ads! (Why?)



Get data from another UWP application

Aucun commentaire:

Enregistrer un commentaire