I have created an applet that will read from a specified file in
a specified location....The applet is getting executed without
any hastles in the local machine's Internet Explorer....If the
same applet is loaded on to Microsoft Internet Information
Server, it is throwing the following exception:

cannot access file ./out.txt

The code that I have used for opening the text file is as

URL location = getCodeBase();

String txtlocation = (getCodeBase().toString()
+ "out.txt").substring(5);

System.out.println("The location is: " + txtlocation);

in = new BufferedReader(new FileReader("./out.txt"));
catch(Exception e)
showStatus("File could not be opened " + e);

What could be the reason for the problem? What is the solution??