Thanks Captian.
I have another error now. The problem is that i am not able to save on applets. I keep getting this error java.io.FilePermisson. The code works on normal java files, but it does not work on applets.
I have looked at some other sites, and i have discoverd this, when i tired writing to files on applets:
/**
* By default, this applet raises a security exception, unless you configure
* your policy to allow applets from its location to write to the file
* "writetest".
*/
How do i change the policy? Where is this policy file located, if there is one?
johnnyarm