This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HELP! reading a text file *************

 
rogelio uribe
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there:
I must deal with a common text file on my program. When I runthe program on a PC, everything is fine, but once I put it on the web server (UNIX) I doesn't run.
Here is the line where I'm getting an error:
DataInput FileID = new DataInputStream(new FileInputStream("results.txt"));
The error is:
netscape.security.AppletSecurityException: security.checkread: Read of 'results.txt' not permitted
can anybody give a hint, please?
Roger
 
Peter Simard
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just a thought here, but as applets can't access the disk directly, you'll need to go through some sort of interface. While i don't know how to implement this, i beleive a Java servlet would be a way to go.
Again, just a thought.
PAS
------------------
PAS
peter@panvox.net
2b | | !2b
 
rogelio uribe
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx for sharing your "Thoughts", I've forgotten that little detail (My program is an applet).
Any ideas?

Originally posted by Peter Simard:
Just a thought here, but as applets can't access the disk directly, you'll need to go through some sort of interface. While i don't know how to implement this, i beleive a Java servlet would be a way to go.
Again, just a thought.
PAS

 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Either make it a signed applet, or write the results file out to someplace where you DO have access rights (like Peter said - if this was a Servet you could write to the server).
You could look into writing it to a cookie. Of course not all users allow cookies.
 
rogelio uribe
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cindy:
Could you please explain me a little bit more about "signed applet"?
I'm looking for an quick alternative, because I need to put this information online as soon as possible, but I made a big mistake forgeting the applet security stuff.
Thanx.
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can read about them here
Or you could do a search on "signed" in the Applet forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic