Skip to Main Content

General Development Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

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
215 views