PDA

View Full Version : Reading files from Applet


JPM
04-26-2005, 08:35 PM
How would you read a file on the server from an applet?

suryad
04-27-2005, 03:52 AM
Not much of an applet person, but if I understand applets, they are quite sandboxed and have no access to the system it is running on...what exactly are you trying to do? Maybe I could be useful if you could give more specifics?

JPM
04-27-2005, 07:35 PM
Made it work. Did it the same way as an application
BufferedReader in = new BufferedReader(new FileReader("map.txt"));
Sorry for asking before even trying that out, but I was sure applets had another way of doing this...

suryad
04-27-2005, 07:51 PM
Well you learn something new everyday is what I say. Thanks for posting your solution. I will keep that in the back of my mind.