When I run this code on my MAC OS X in an eclipse web project
File file1 = new File("myfile.txt");
if( !file1.exists() ) file1.createNewFile();
System.out.println( file1.getAbsolutePath() );
it says
/Users/Richard/Desktop/eclipse/Eclipse.app/Contents/MacOS/myfile.txt
on my WINDOWS 7 computer it says
C:\Users\Richard\Documents\workspace\myproject\src\com\example\myclass\myfile.txt
How do I get my eclipse running on my MAC OS X to output files in my Documents folder like on my WINDOWS 7, instead of going into the Eclipse.app APP BUNDLE and being put into the folder Contents/MacOS ?