deleting file doesn't work - strange filename
hi people!
Currently i am writting an application which reads spam mail's from a folder (*.eml) and then moves these files to another directory.
first problem was that the filenames were too long/have stange characters,
so the file.renameTo(); methode didn't work.
example: nhw81@korea.com_y5fzqobl70ax4sxbaz8x@loewy.at-_ 5__ _=_ _!_img src=_hfoh2of2g42gg42.gif_ onerror=_top.document.location='httpdae.%7a%69%6f%6c%6f.%62%65'523D7388.eml
solution: i copyed the files by using the Stream classes. (FileInputStream/FileOutputStream)
at last step i need to delete the file in the source dir.
file.delete() works just somtimes fine.
any ideas?
- convex

