I need to open a file and read the string object from the file. I realize that I need to use the java.io class but am confused about which method to use (something comparable to the ifstream in C++). Whatever is used needs to input a string object for parsing inside of the java program. I am looking for any suggestions that can be offered.
I also need to read the string object from the file and halt reading (and parsing) when the file reaches EOF. Is there anything comparable to eof and getline in Java? Once gain, I appreciate any suggestions offered.
Thanks in advance.
Dave Christman
I also need to read the string object from the file and halt reading (and parsing) when the file reaches EOF. Is there anything comparable to eof and getline in Java? Once gain, I appreciate any suggestions offered.
Thanks in advance.
Dave Christman