I have made an applet, and I wish to make the applet write to a file located on the webhost.
The algorithm:
public void WriteToFile(String filsti)
{
[...]
try
{
BufferedWriter FileOut = new BufferedWriter(new FileWriter(PATH));
int size = HoldListe.size();
FilOut.write("...");
FilOut.write("...");
for(int i = 0; i < size;i++)
{
FilOut.write(...);
}
FilOut.close();
}
catch(Exception e)
{
System.out.println(e.getMessage());
}
}
How can I tell the webhost to allow my applet to write on it? And how do I impelemt the code for it to work?
Edited by: Henrikloev on Jul 4, 2008 10:26 AM
Edited by: Henrikloev on Jul 4, 2008 10:27 AM
Edited by: Henrikloev on Jul 4, 2008 10:27 AM