[Pogamut-list] Writing to an external file

Tomus pogamut-forum at artemis.ms.mff.cuni.cz
Sat Jul 18 16:24:17 CEST 2009


Re: Writing to an external file

Author: Tomus

Thank you michal.bida for the email.

However the coding you provided did not work. Still getting the "java.io.FileNotFoundException: txt_file.txt (Access is denied)" message.

I have found a solution and here is the coding:

      try {
            LogFileStorage logStorage = new LogFileStorage(this.getLogger());
            log.info("Enter text here");
            logStorage.close();
      } catch (IOException ex) {
            log.info(ex.toString());
      }

this works without any problems however ''LogFileStorage'' only writes files to the temp folder.
Just drag the temp file out of the temp folder and rename it.

thank you for the message though

cheers Thomas





More information about the Pogamut-list mailing list