File::deleteFile ( )


#1

Hi,

I would like to know in wich case this method return false.

I just took over a soft and I got a case where I the deleteFile() method return false so when I use createOutputStream on my file after that I add data in my file instead of replacing some.

Thx,


#2

It’ll return false if it can’t delete the file. And if the file doesn’t exist, it’ll true. Surely it says all this in the help for that method?


#3

yes, but I would like to know why it can’t delete the file.

Edit: Ok, I finded why anyway now I need to correct my bug :wink: