So I'm attempting to read a file in an Eclipse Java project. The resource itself is in a linked folder that I've added using:
New -> Folder. Advanced >> Link folder etc.
I couldn't open the file so I wrote a simple method to find out what I could access:
public static void main(String[] args)
{
File folder = new File(".");
String[] listOfFiles = folder.list();
for (int i = 0; i < listOfFiles.length; i++)
{
System.out.println("file: " + listOfFiles[i]);
}
}
This leaves me with the following output:
file: .classpath
file: .project
file: bin
So how do I open files in Eclipse from a linked folder location?
If I can't, what's the purpose of Linked Folders?
Thanks in advance.