It's nice to see some of my followers, and other dev.to lingerers here, and thanks for reading.
So I am making an app builder in java, and I googled
How to see if a file exists in java
and I on StackOverflow I see answers like:
File f = new File(filename); //in my case: "Built Applications/New Application" f.exists();
but when I do this it returns false every time.
When I get the absolute path, it returns:
"C:\Users\calin\Built Applications\New Application"
but I need it to be relative, which should return:
"C:\Users\calin\OneDrive\Desktop\java projects\misc\AppBuilder\Built Applications\New Application"
how can I do this?