Hi All!
I was reading the BufferedReader class source code and came across a function called readLine(boolean ignoreLF). When I saw the public readLine() function which we can use through an object of BufferedReader, I realized that readLine() calls the readLine(boolean ignoreLF) with a false parameter. I understood that this is the reason why readLine() cannot read two lines terminated by \n.
I'm wondering if it is possible to call the readLine(boolean) by sending it a true parameter (either directly or indirectly). I know I have other options (e.g. by using read()), but I just want to try it out using readLine(boolean)
Any help?
Thanks!
Regards,
Shobit
I was reading the BufferedReader class source code and came across a function called readLine(boolean ignoreLF). When I saw the public readLine() function which we can use through an object of BufferedReader, I realized that readLine() calls the readLine(boolean ignoreLF) with a false parameter. I understood that this is the reason why readLine() cannot read two lines terminated by \n.
I'm wondering if it is possible to call the readLine(boolean) by sending it a true parameter (either directly or indirectly). I know I have other options (e.g. by using read()), but I just want to try it out using readLine(boolean)
Any help?
Thanks!
Regards,
Shobit