Search:

Type: Posts; User: straw

Search: Search took 0.10 seconds.

  1. Replies
    4
    Views
    5,388

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

    haha its ok just glad i have this it looks alot easier than what i have been doing!! XD

    yer thats what i have been doing for the BufferedReader aswell but thanks for the heads up!

    Thanks...
  2. Replies
    4
    Views
    5,388

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

    hi thanks for the response, i tried using the reader.hasNext() but it just comes up with this error:


    i have imported:

    import java.io.*;
    import java.io.BufferedReader;
    import...
  3. Replies
    4
    Views
    5,388

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

    Hi i have this code that reads a this txt file below.

    My code:


    try {
    BufferedReader in = new BufferedReader(new FileReader("file.txt"));
    String str;
    while ((str =...
Results 1 to 3 of 4