Working with filesystem on XAMARIN

Hi All,

I am trying to save a file on the sd-card , and i am keep getting an exception "system unauthorizedaccessexception" , reading files from NDK/C# works ok , but writing is the problem.

this is what i am trying to do :
File.WriteAllBytes("./storage/sdcard0/out/test.dat",ReturnArray );

The file system tutorials are only related to ios and not for android.

Any ideas why does i happens ?

Thanks
Michael

Posts

Sign In or Register to comment.