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:

com.ms.security.SecurityExceptionExsearchText.executeFirst]:
cannot access file ./out.txt


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

URL location = getCodeBase();

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

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

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

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