I am trying to open a file in a Java program (say Program.java) using relative path.
I have two directories as follows
String path = // <-- not sure how to write the path
File scenario = new File (path);
From what you are saying, you should set path to:
../ to go up one level then the rest is the relative path against ProjectWork
In Java file when you use a relative path without another argument, the file is matched against the System property
user.dir which matches the working directory.