Writing to a file in a different folder
Say I have two folders in my project:
And I have code in the src/main/java folder, and this code wants to load a file that is in the src/main/resources folder. How would I go about doing that without using the location like this "C:\Documents And Settings\Workspace..."
Isn't there some way to use that path instead? Like this "/ProjectName/src/main/resources"?
So my code looks like this:
FileInputStream fis = new FileInputStream("what goes here?");