JNLP API
Hi all!
I have an application JNLP that can't access to local file system, so my query is"how can I transform the code with JNLP API?"
This is the code:
...
try {
File newdir = new File("C:\\", "newdir\\" + mycampolabel.getText());
newdir.mkdir();
} catch (SecurityException se) {
System.out.println("Error -- " + se.toString());
}
...
and
...
try {
FileWriter myfile = new
FileWriter("C:\\newfolder\\"+ "filename" + ".txt", true);
myfile.write(txt.getText());
myfile.close();
}
catch (IOException e) {
System.out.println("Error -- " + e.toString());
}
....
Thanks!
(sorry for my bad english)
|