java - Scanner stops reading long input file -
I tried to read a full file using the standard input using the scanner, but it stops after a sufficient amount of input My code is:
import java.util.Scanner; Public Category TestEOF {public static zero main (string [] args) {scanner sc = new scanner (System.in); Sc.useDelimiter ("\\ Zed"); String full = sc.next (); Println (whole); }}
It is supposed to be read all the way up to the end of the scanner file, but I think it stops after some 1000 characters. I have triggered it with different input text files and each received a similar result every time, even if there is no unusual character in the input file. I'll call it
Java TestEOF & lt; Input.txt
Comments
Post a Comment