Exemplo n.º 1
0
        private async void SaveFileTokensAsync()
        {
            try
            {
                var tokens = OpenDocuments.Where(i => i.Token != null).Select(i => i.Token).ToArray();
                var file   = await ApplicationData.Current.LocalCacheFolder.CreateFileAsync("Files.dat", CreationCollisionOption.ReplaceExisting);

                await FileIO.WriteLinesAsync(file, tokens);
            }
            catch { }
        }