About 692,000 results
Open links in new tab
  1. how to check the end of a file in java - Stack Overflow

    Oct 19, 2016 · If it always goes to the else part, it means no line in the file contains the required string. Please show the contents of the file.

  2. Determine end-of-file using Java's Scanner class

    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 …

  3. string - Java end of file - Stack Overflow

    Jun 8, 2015 · File readFile = new File(PATH_TO_FILE); // where PATH_TO_FILE is the String path to the location of the file // Set Scanner to readFile Scanner scanner = new …

  4. Java simple code: java.net.SocketException: Unexpected end of file …

    Java's HTTPClient, found here, throws a SocketException with message "Unexpected end of file from server" in a very specific circumstance. After making a request, HTTPClient gets an …

  5. file io - reading input till EOF in java - Stack Overflow

    Dec 18, 2012 · EOF Or the End of the line..! Can be achieved in the single while Loop condition..!!, until the condition is valid the loop runs and taking the input from the …

  6. Java compile error: "reached end of file while parsing }"

    Java compile error: "reached end of file while parsing }" Asked 14 years, 10 months ago Modified 2 years, 11 months ago Viewed 331k times

  7. java - What is the "reached end of file while parsing" error, and …

    Apr 4, 2017 · It means that it "Reached the end of file while parsing", i.e. the parsing is incomplete, but there is no more text to parse. Example: Expression a * (2 + b is incomplete, …

  8. java - EOFException - how to handle? - Stack Overflow

    26 I'm a beginner java programmer following the java tutorials. I am using a simple Java Program from the Java tutorials 's Data Streams Page, and at runtime, it keeps on showing …

  9. Exception: java.net.SocketException: Unexpected end of file from …

    Exception: java.net.SocketException: Unexpected end of file from server Asked 3 years, 7 months ago Modified 3 years, 7 months ago Viewed 7k times

  10. How is actually End of File detected in java? - Stack Overflow

    Oct 4, 2020 · I think java will call some C/C++ function from operating system and this function will return -1 , so java knows end of file is reached. On Linux / UNIX / MacOS, the Java runtime …