In a jsp I tried:
String error="";
boolean success = false;
try {
filename="/home/mydir/temp.txt";
File myfile = new File(filename);
success = myfile.createNewFile();
} catch (IOException e) {
error= e + "";
}
I get:
success=false;
error=java.io.IOException: No such file or directory
/home/mydir/temp.txt
Permissions ok
Mike - 06 Feb 2006 18:54 GMT
Sorry, I guess permissions was a problem after all. When I tried a
file name of "/tmp/temp.txt" it worked. (os Linux)
>In a jsp I tried:
>
[quoted text clipped - 21 lines]
>
>Permissions ok