Forum Xamarin Xamarin.Forms

Xamarin text file

PentaTrickPentaTrick Member
edited November 2018 in Xamarin.Forms

Hello .
I need to create text file on device storage and using it from pc. That code is working fine. And i can see txt file on device storage but cant open it /the file format is not supported /. Cannot see it on file explorer.

var sdCardPath = Android.OS.Environment.ExternalStorageDirectory.Path;
var filePath = System.IO.Path.Combine(sdCardPath, "Nomin.txt");
using (System.IO.StreamWriter write = new System.IO.StreamWriter(filePath, true))
Sign In or Register to comment.