I am trying to delete a file using the J2ME FileConnection.delete () method, but when I call the delete () method, I throw an IOException. I wrote a conditional statement to check for the existence of the file, but regardless of this, an IOException is thrown.
According to the FileConnection API , when delete () is called in a FileConnection object, all threads associated with the object are closed and any subsequent actions on threads associated with a particular file occur, an IOException is thrown.
The file I'm trying to delete was written in one program, but after calling the delete () method, I call recordControl.reset (). Could this cause an IOException?
What could be my problem?
source
share