private async void OneDrivePage_Loaded(object sender, RoutedEventArgs e) { // create example data if no exist var localStorageService = new LocalStorageService(); var folder = localStorageService.GetFolderAsync("Data"); if (folder == null) { await localStorageService.CreateOrGetFolderAsync("Data"); var file = await localStorageService.CreateOrGetFileAsync("loremipsum.txt"); using (var stream = await file.OpenStreamForWriteAsync()) { using (var sw = new StreamWriter(stream)) { await sw.WriteAsync("Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet."); } } } }