Original Post
It is my understanding that the following code should dump something in a file, yet my applet states that the file can not be accessed. Any ideas?
FileOutputStream fos;
try{
fos = new FileOutputStream("work.txt");
String s = "THE END.";
byte b[] = new byte[s.length()];
s.getBytes(0, s.length(), b, 0);
FileDescriptor fd = fos.getFD();
if(fd.valid() == false)
msg += "File Problem";
else
fos.write(b);
} catch(IOException e) { msg += "Write file failed"; }
Thanks
·†§ Nick §† ·
