How do I create a simple text file on a Windows phone (8.1) that can be accessed via a USB cable?
2 answers
It is possible to write to the Documents folder on your phone, but adding it to your manifest will cause your app to complete the Windows Phone Store certification process.
This feature is called documentsLibrary
<Capability Name="documentsLibrary" />
If you declare it, you can read and write files to KnownFolders.DocumentsLibrary
.
+3
source to share
You have access to your public documents folder from windwsphone. Have a look at the following code snippet (details: fooobar.com/questions/1471536 / ... )
var folder = ApplicationData.Current.LocalFolder;
var file = await folder.CreateFileAsync(fileName, CreationCollisionOption.ReplaceExisting);
-1
source to share