[Mono-list] Delete File on Android
Kuehner
kuehner at initions.com
Mon Sep 5 05:50:43 EDT 2011
Hi!
I created a file on a sd card with following commands:
FileStream fs = new FileStream(mGpsTripPath, FileMode.OpenOrCreate,
FileAccess.ReadWrite);
StreamWriter sw = new StreamWriter(fs, Encoding.Unicode);
sw.Write(content);
sw.Flush();
fs.Close();
sw.Close();
Now I am not able to delete that file anymore (for example with
File.Delete(mGpsTripPath);). The only way I´m able to delete this file is to
read the content of the sd card with Windows.
I think that many applications need to create and delete files... but how do
I do that with mono?
Thanks for your help!
--
View this message in context: http://mono.1490590.n4.nabble.com/Delete-File-on-Android-tp3790850p3790850.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list
mailing list