Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Making an applet write to a file located on the webhost

843807Jul 4 2008 — edited Jul 25 2008
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 22 2008
Added on Jul 4 2008
18 comments
214 views