I'm trying to print some stuff to a file from a Rascal program. So I build a location from the working dir using something like |cwd:///myFile|.
However, I could not find the file, so I tried printing this path. But all I get is the same as what I put into the location. Hence I still do not know what the actual path is that will be used.
So how do I obtain the actual path that a location for a file or folder points to?
Something like this:
loc fileLoc = |cwd:///myFile.txt|;
writeFile(fileLoc, veryInterestingDataThatIsTooLargeForConsole);
println(Your file is saved here:);
loc actualFileLoc = getActualFileLoc(fileLoc);
println(actualFileLoc);