What all I want to do is extract a single character every time from a text file, no matter it is a whitespace and/or new line character, till the eof. Would using ""(empty string) as a delimiter work?
scanner.next().charAt[0]
The above code will take the first character of the string returned by
scanner.next()
and ignore the rest of the part. But I want just a single character every time from a file without ignoring any.