[mono-android] Deleting files on external storage?
Jb Evain
jbevain at gmail.com
Tue Mar 29 05:00:26 EDT 2011
Hi,
On Tue, Mar 29, 2011 at 10:51 AM, Jon Valvatne <jon at norsync.com> wrote:
> System.IO.File.Create("/sdcard/test.txt");
> System.IO.File.Delete("/sdcard/test.txt");
>
> Has anyone successfully deleted a file off external storage from C# code?
Have you properly disposed the created file stream (using either the
Close or Dispose method, or the using pattern on it) before trying to
delete the actual file?
Jb
More information about the Monodroid
mailing list