help with reading a file, cannot instantiate
I am trying to read a plain text file off you the local computer , as far as I know the system is working except for a error I'm getting that I cant seem to get rid of. I haven't see this error before in this setting.
Quote:
Cannot Instantiate Type File
the line of code that is causing the problem
Code :
File inFile = new File(dirPath + foName);
Re: help with reading a file, cannot instantiate
Perhaps you have another, abstract, type called File somewhere.
If so, remove it and import java.io.File (assuming that is the File you mean to use).
Re: help with reading a file, cannot instantiate
Briliant that worked, well that part works now
Re: help with reading a file, cannot instantiate
You're welcome. Good luck with the rest of the program!