aspose file tools*
The moose likes Applets and the fly likes Applet can write to, but not read from local file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet can write to, but not read from local file." Watch "Applet can write to, but not read from local file." New topic
Author

Applet can write to, but not read from local file.

Sean McGurk
Greenhorn

Joined: Jun 05, 2001
Posts: 21
Hi!
I am in the process of developing a spell checker applet. This applet creates a dictionary from a flat text file and also allows users to add their own words to the custom dictionary. At the minute, however, users are only able to add words to the .txt file, which is located in the same directory as the applet. I have tried to enable the applet to read from the text file by using the following code:

but I keep getting a NullPointerException error every time I run the applet
I think this is a syntactic, rather than a security issue, as I am able to write to the file but not read from it.
Any suggestions?
Thanks and regards,
Sean
[This message has been edited by Sean McGurk (edited July 30, 2001).]
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16065
    
  21

Yeah.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applet can write to, but not read from local file.