Oops... my bad. I used the methods from the Scanner class :P
note: you will need to either surround this code with a try/catch block, or add a throws declaration to your method.
Scanner...
Type: Posts; User: helloworld922
Oops... my bad. I used the methods from the Scanner class :P
note: you will need to either surround this code with a try/catch block, or add a throws declaration to your method.
Scanner...
If there's any data you don't want printed out, don't. Just keep reading until you find what you want.
BufferedReader reader = new BufferedReader(new FileReader("file.txt"));
while...