Eclipse open a file in source folder

asked 2015-12-02 04:32:45 -0500

Kenavera gravatar image

Dear reader,

I want to open a file in the source directory. I don't get it to work. When I place the file in the toplevel directory so right under Project@build it works, but otherwise I can't get it working. I tried file.open("sources/file.txt"),file.open("[Source directory]/eclipse/sources/test2.txt"); etc.

image description This is how the structure looks, the file that wants to open a txt in sources is in the src folder.

Thansk for the help

Kenavera

edit retag flag offensive close merge delete