try
{
reader = new BufferedReader(new FileReader("file.txt"));
while ((line = reader.readLine()) != null)
Source += line + "\n\r";
reader.close();
}
catch (IOException e)
{
return "";
}
I've never gone to school for programming, so there will probably be holes in my knowledge. However I use NetBeans 'Clean&Build', then go to the /home/user/NetBeansProjects/projectname/dist' directory, copy 'file.txt' there, then execute the program using 'java -jar projectname.jar' and the file does not read. I'm not sure whats wrong...
This post has been edited by ndimario: 20 April 2011 - 09:54 PM

New Topic/Question
Reply



MultiQuote







|