KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am trying to read text from a text file. I need help figuring out when the end of file has occurred. How can I determine this in Java? FileInputStream istream = new FileInputStream("\""+filename+"\""); Scanner input = new Scanner(istream); while(EOF != true) { .... }
Tags (comma-separated)
Save Edits
Cancel