Forum Stats

  • 3,770,091 Users
  • 2,253,065 Discussions
  • 7,875,305 Comments

Discussions

OpenScript: File Reference (Paths.get(), etc..) to load a file

sachs_caci
sachs_caci Member Posts: 2 Green Ribbon

Hi,

I am new to OpenScript, but have been using Java for 10+ years. :)

I am not sure how OpenScript handles this, but in "regular Java", when you use the code

"File file = Paths.get(".\script.java").toFile();

warn("File: " + file.getAbsolutePath());"

I would get the absolute path of the "script.java" file, which in this case is "C:\OracleATS\OFT\Project23.All\Project23\.\script.java", but in OpenScript when I playback, I get "C:\OracleATS\openScript\.\script.java".


So what is the best way to load in a properties file or text file?

Tagged:

Best Answer

Answers