Search:

Type: Posts; User: helloworld922

Search: Search took 0.19 seconds.

  1. [SOLVED] Re: reading only certain lines from a .txt file

    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...
  2. [SOLVED] Re: reading only certain lines from a .txt file

    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...
Results 1 to 2 of 2