Skip to main content

fss.delete doesnt work?

1 reply [Last post]
68060
Offline
Joined: 2011-08-29
Points: 0

When I try to do fss.delete(file) - I get this

java.io.IOException:
at com.sun.midp.io.j2me.file.Protocol.delete(Protocol.java:916)
at com.sun.lwuit.io.impl.MIDPImpl.deleteFile(MIDPImpl.java:661)
at com.sun.lwuit.io.FileSystemStorage.delete(FileSystemStorage.java:145)

any idea why?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
68060
Offline
Joined: 2011-08-29
Points: 0

OK it does work! make sure you close the file and any inputstreams before deleting ;)