|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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?? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > I/O Exception |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|