title: Can't get applet to read text file
body: <p>I've tried to get my Java Applet to read from my text file, but I do not have sufficient privaleges to read the file when i run the applet in my browser.
  I have tried to use policy files but I cannot seem to get them to work.</p>
  
  <p>I later tried </p>
  
  <pre><code>System.setProperty("java.security.policy", "*filelocation*");
  </code></pre>
  
  <p>but i got this error </p>
  
  <pre><code>java.security.AccessControlException: access denied (java.util.PropertyPermission        java.security.policy write)
  at java.security.AccessControlContext.checkPermission(Unknown Source)
  at java.security.AccessController.checkPermission(Unknown Source)
  at java.lang.SecurityManager.checkPermission(Unknown Source)
  at java.lang.System.setProperty(Unknown Source)
  at BIT.init(BIT.java:35)
  at sun.applet.AppletPanel.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)
  </code></pre>
  
  <p>What ways can I get my applet to run in my browser? It works fine in Eclipse's applet viewer.</p>