[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: path problem in workspace project!!!!!

Hi;

When you import an existing project into workspace, tihs project folder go into the workspace that you define. Then you can read your files relative to the root of the project. Lets say your project name in the workspace is FileOperations and your source folder name is src; and you have file that name is Readme.txt in the src folder then

File file = new File("src\\Readme.txt");
FileInputStream stream = new FileInputStream(file);
stream.read();.. bla bla bla....


PS: This like questions may be post to the Eclipse newsgroup.

Night BLue