I wrote up a code of an Applet which needs to read in from a text file. I used this line to make the program read the text file:
BufferedReader input = new BufferedReader(new FileReader("test.txt"));
Now the code works fine in Eclipse and I have it so the .class and .java files are in the same folder. The test.txt file is also in the same folder with everything else. My problem is that when I try to host this Applet up, it doesn't read the text file at all. I put the html, class, java, and text files all in the public_html folder. How can I make the applet read from the text file while being hosted? Thanks