BitShift 0 Report post Posted May 9, 2006 For a long time now I have been reading forums and articles to figure out how to write/read files with a Program on the Internet.I'll give you my situation. I have a game that writes/reads a file that keeps track of a high score. It is in Java and it is hosted as a Java Applet and a Java Web Start program.I want to be able to write and read from a certain file on the server, the same directory in which my game is in on my server.Everything I have read says this is perfectly ok and the working sandbox doesn't affect this. Well I can't seem to figure out how to do this.I don't know if the way I write the file is bad, the way I retrieve the directory, or if in the script to execute the applet I need to include something, or in the JNLP file I need to put something.Everything I have read tells me it is possible and easy but I can't find a place that tells me exactly how to implement it.To sum it all up:I have a program wrapped in a single Jar file on my server. I want to be able to have read/write/delete priviledges in the same directory the Jar is in on the server, NOT the clients computer.If anyone could shed any light on the subject I would greatly appreciate it. Share this post Link to post Share on other sites
humphrey88 0 Report post Posted August 19, 2006 For a long time now I have been reading forums and articles to figure out how to write/read files with a Program on the Internet.I'll give you my situation. I have a game that writes/reads a file that keeps track of a high score. It is in Java and it is hosted as a Java Applet and a Java Web Start program.I want to be able to write and read from a certain file on the server, the same directory in which my game is in on my server.Everything I have read says this is perfectly ok and the working sandbox doesn't affect this. Well I can't seem to figure out how to do this.I don't know if the way I write the file is bad, the way I retrieve the directory, or if in the script to execute the applet I need to include something, or in the JNLP file I need to put something.Everything I have read tells me it is possible and easy but I can't find a place that tells me exactly how to implement it.To sum it all up:I have a program wrapped in a single Jar file on my server. I want to be able to have read/write/delete priviledges in the same directory the Jar is in on the server, NOT the clients computer.If anyone could shed any light on the subject I would greatly appreciate it. HiOther than signed Java Applets, all the Java Applets will be "forced" to run in the sandbox. This is to ensure that the security goals are not compromised. Therefore, in order not to allow your Java Applets to run in a sandbox, you have to ensure that the Applets are digitally signed and they are accepted by the end-users. However, you may want to find out yourself on how to digitally sign your applets. Share this post Link to post Share on other sites