Skip to Main Content

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

sachs_caciNov 8 2021

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?

This post has been answered by sachs_caci on Nov 10 2021
Jump to Answer
Comments
Post Details
Added on Nov 8 2021
1 comment
2 views