I have a website that i have uploaded an applet to. In the same dir as the applet, I have uploaded three textfiles that the program uses. The applet works perfectly in the appletviewer runing off of my computer, but when i upload the class online it seems that the program cannot acess the text files. The functions of the program work fine, except for the part where it reads the text file. I have heard of policy files, but I havent been able to find out how to implement them into my applet or webpage. Any help would be much appreciated!

>Accesing text file from server to use in Java applet

The java.net package provides basic functionality for accessing resources via HTTP.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.