file.delete() error 30

Ask by : Radiak August 24, 2015 14:24

I try to delete a text file I created with:

FileOutputStream fOut = openFileOutput("game.txt", MODE_PRIVATE);

by using

File file = new File(filename);
        if (!file.exists())
        Log.d(TAG,"gonna delete game.txt");

but keep getting error message:

Unable to unlink '/game.txt': Read-only file system (errno=30)

Do you know what's wrong here?

View original question

Answer by : RadiakNovember 05, 2012 08:20

now it works well. Filename did not contain full path to file (although it's in root directory) it has to have full path

View original answer