Results 1 to 3 of 3
  1. #1
    Arnold is offline Member
    Join Date
    Oct 2009
    Rep Power

    Unhappy Reading external text files from an Applet

    I'm working with Greenfoot and my game needs to read external text files to implement some dialogues.
    In Greenfoot it works fine, but when I convert it to applet, it can't read those files anymore. It is still able however to access image and sound files.

    So how can I read a text file, which is in the same folder as the html of the applet?

  2. #2
    Supamagier is offline Senior Member
    Join Date
    Aug 2008
    Rep Power


    Add a security policy. I wouldn't know how to do this by heart, but I'm sure Google gives you a decent answer :)
    I die a little on the inside...
    Every time I get shot.

  3. #3
    devunion is offline Member
    Join Date
    Jun 2008
    Rep Power


    You just need to sign your applet.
    Try Controls4J - Advanced Swing Components.

Similar Threads

  1. Reg: Reading Files from Text file
    By balaji csc in forum New To Java
    Replies: 1
    Last Post: 11-09-2009, 11:06 AM
  2. Reading In Text Files
    By Dukey in forum New To Java
    Replies: 4
    Last Post: 04-04-2009, 11:53 PM
  3. Reading and Writing Text Files
    By kandt in forum New To Java
    Replies: 1
    Last Post: 11-12-2008, 03:15 AM
  4. Does OS intervene when reading Java text files
    By Tina G in forum Advanced Java
    Replies: 1
    Last Post: 04-07-2008, 02:29 PM
  5. Applet - reading text files packed into JAR file
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-08-2008, 09:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts