Total members 11893 |It is currently Tue Nov 05, 2024 7:47 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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? :-(




Author:
Newbie
User avatar Posts: 4
Have thanks: 0 time

Does any errors appear to you about security policy

_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time

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.


Author:
Newbie
User avatar Posts: 4
Have thanks: 0 time

Are u using applet .!!

_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time

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 :-/


Author:
Newbie
User avatar Posts: 4
Have thanks: 0 time

The Biggest problem you will face is the security permissions
java/applet-file-permission-t2706.html

_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 6 posts ] 

  Related Posts  to : Need Help with Server side scriping in Java
 Ajax Source code to Suggest application with JSP Server side     -  
 remove space ,trim strings from left side ,right side ,both.     -  
 show figures side by side using subfigure     -  
 HTTP Server in Java     -  
 need java client/server code     -  
 Java Chat Program with client & Server     -  
 Need Help for Java Chat - one server multiple clients..     -  
 Can I display same vertically on right side?     -  
 Client-side Caching using AJAX & Javascript     -  
 Sql server or windows server question?     -  









Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
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