How do I read to EOF using Java?
I have been stuck on numerous problems because I can't figure out the proper code for it.
I have looked at MANY sites trying to understand how to do it, but I'm having no luck.
I have tried things like the following...
try{
readLine()
\ rest of code
}
catch{}
while(r.read(cbuf) != -1){}
while(sc.hasNext())
I have had ZERO LUCK
Could someone please post how to do it. (Please don't post 'Just google it bro'... I HAVE TRIED)