Hi,
I Would like my servlet to save a string to a "dump/temp" folder every time it runs. (Backup and debugging purposes)
How do I create a safe file name that is not already there? When using Multipart form upload there is the Default renaming policy that increments the file name if neccessary.
(ie if test.txt already exists this becomes test1.txt if that already exists test2.txt etc..)
Any suggestions?
Thanks a load.
I Would like my servlet to save a string to a "dump/temp" folder every time it runs. (Backup and debugging purposes)
How do I create a safe file name that is not already there? When using Multipart form upload there is the Default renaming policy that increments the file name if neccessary.
(ie if test.txt already exists this becomes test1.txt if that already exists test2.txt etc..)
Any suggestions?
Thanks a load.