Does such a method readLine(boolean) exist in BufferedReader? I know it's not mentioned in the API, but when I write the following code:
BufferedReader br = new BufferedReader(new FileReader("C:/...../inp2.txt"));
The method readLine(boolean) from the type BufferedReader is not visible
Which tells me that the method readLine(boolean) exists but I am not allowed to use it because it's private.
I'm asking this because I want to use readLine specificallyto extract two lines separated by CRLF (inp2.txt contains the two lines separated by an enter) and I know there are other ways to do it, but just wondering if readLine always necessarily has to terminate a line with CRLF?