Maybe that work for you:
var jfs = new
Java.IO.File(Android.OS.Environment.ExternalStorageDirectory.ToString(),
"test.txt");
var jfw = new Java.IO.FileWriter(jfs);
jfw.Write("Hello World");
jfw.Close();
You can also use the .NET classes to create and write.
var file =
System.IO.Path.Combine(Android.OS.Environment.ExternalStorageDirectory.ToStr
ing(), "test.txt");
...
Regards
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von jnmahi
Gesendet: Mittwoch, 22. Juni 2011 11:36
An: [email protected]
Betreff: [mono-android] create file in sdcard
Hi all ,
i want to create a file on sdcard by my application . but i dnt have
write permission on sdcard . i also added <uses-permission
android:name="android.permission.WRITE_EXTERNAL_ST ORAGE" />
permission in my manifest ... i have sdcard in my image that i verified ...
Can anyone tell me how to create and write on file ..... thanks in advance
--
View this message in context:
http://mono-for-android.1047100.n5.nabble.com/create-file-in-sdcard-tp451348
5p4513485.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid