Hi, I am trying to run an applet on a website, but when trying to access a file to write (reading works like a charm), do some wrapping:
try {
FileOutputStream fos = new FileOutputStream("http://mitch9654.zymichost.com/songs.DAT");
OutputStreamWriter osw = new OutputStreamWriter(fos);
BufferedWriter bw = new BufferedWriter(osw);
}
catch (FileNotFoundException e) {
e.printStackTrace();
}
when I do the "fos = new FileOutputStream("http://mitch9654.zymichost.com/songs.DAT");" thing, it goes kablooie.
My // goes to \, and my other / goes to \
I found that out with
System.out.println(fos.toString());
Thanks,
Mitch
Check it out here: http://mitch9654.zymichost.com/