2 Replies Latest reply: Apr 5, 2012 11:32 AM by userWALTTM RSS

    Java Concurrent Program reading file

      Hi all

      I have a JCP that's working as I require, apart from one small issue.
      I want to open a file, read the contents, and then process them. I do this as follows:

      fileReader = new FileReader("/d01/oracle/visappl/file.txt");

      This works when I hard code the full path. However, when I try to use an application relative path, it doesn't work:

      fileReader = new FileReader("$APPL_TOP/file.txt");
      I get a file not found error.

      Is there a way to do this?