Java2 codes,problems ,discussions and solutions are here
Fri Dec 19, 2008 8:09 pm
Ok I want to be able to save variables on my server that way I can make a game in Java but I seem to be having problems saving and I need to know if I am doing something completely wrong. I made a test that would open a saved file named (test.txt) and upload it onto a text box. The text box shows up but it is empty as the text file has words in it. Any idea what I did wrong? If you need more information I will be happy to give what info I have.
Here is the code that relates to reading the file that I am currently using:
Variant Lines = new Variant();
FileSystem.OpenInput( System.getProperty("user.dir") + "\\test.txt", 1 );
Lines.set( FileSystem.in(1).InputLine() );
Pass.setText( Lines.toString() );
FileSystem.Close( 1 );
Its been a Day and still no answer? :-(
Sat Dec 20, 2008 8:45 pm
Does any errors appear to you about security policy
Sun Dec 21, 2008 8:48 am
No, when I compiled it there were no errors.
I know it is possible to save server side otherwise games like Runescape would never work.
Runescape is made in java.
Heck Runescape saves Server and Client side! yes that means Runescape saves files on your computer. O.O
Either way I didn't know if there was a way to save server side to a text file.
Sun Dec 21, 2008 4:39 pm
Are u using applet .!!
Sun Dec 21, 2008 5:46 pm
Yeah its a java applet.
I wanted to just make a simple online game that would allow saving variables to a folder in my server. lol :-/
Sun Dec 21, 2008 8:13 pm
The Biggest problem you will face is the security permissions
java/applet-file-permission-t2706.html
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.