Click to See Complete Forum and Search --> : using an applet, how to save and open a text file?
johhnyBravo
Jun 25th, 2003, 08:13 AM
im using a japplet, and i want to save and load text files basically,
eg open file for output
input line etc
input line etc
close file
eg open file for input
a= print line etc
close file
Dillinger4
Jun 26th, 2003, 11:57 PM
Applets are severly restricted in what they can do.
Here is a list to give you a general idea as to what an applet loaded from a network is prohibited from doing.
[list=1]
Access to the local file system is not permitted. Applets cannot read from or write to the local file system. Applets cannot find out any information about the file so this means finding whether the file actualy exists or the modification date is out of the question.
Applets cannot launch other programs on the client.
Applets cannot load native libraries or define native method calls.
The use of System.getProperty() is not permitted where information about the users machine like username is returned.
An applet can only open a network connections to the host from which it was downloaded from.
Applets cannot listen on ports below 1024 with IE not even allowing this.
If listening is allowed the applet can only accept incomming connections from the host which the applet was downloaded from.
[/list=1]
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.