This content has been marked as final. Show 4 replies
What if I have a file that I put on the server sideThe answer is yes. Before deciding where to put it and how to read it(there are a few options), I would look at Applet.getCodeBase(),
that I want to read when I run the program. I can
always put the file contents into a class, but, can I
create a file, put it on the server at the same
folder of the applet source code then?
Applet.getDocumentBase(), URL.openConnection(), URLConnection.getInputStream().
Take a look also at Class.getResourceAsStream(), but I would not
recommend this method.