This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Applet to .txt file comm. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Applet to .txt file comm." Watch "Applet to .txt file comm." New topic

Applet to .txt file comm.

gulshan grover

Joined: Oct 30, 2001
Posts: 9
i want to get text from a text file in a applet. I am trying Filereader and bufferreader but iyt is not working.
can somebody help me.
karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388
do you want to read a text file stored on the machine running the applet ?
this is not allowed for security reasons! however, with a signed applet you should be able to do so (it will prompt the user if he wants to grant read access to your file system to this applet).
the same applies for servers other than the one the applet was loaded from.
if this did not anser your question, then give some more details on your problem.
jQuery in Action, 2nd edition
subject: Applet to .txt file comm.
Similar Threads
Applet not shown in Eclipse internal browser.
getting file in protected directory
read and write files using applet
saving a file on local PC