Search:

Type: Posts; User: copeg

Search: Search took 0.15 seconds.

  1. Replies
    5
    Views
    3,431

    Re: end of file \ file offset

    Use the method Helloworld suggested...mark the bufferedreader when you open the file, read it, then call reset on the reader...have a look at these methods in the api of BufferedReader to learn...
  2. Replies
    5
    Views
    3,431

    Re: end of file \ file offset

    Not sure why you wish to create the new method, all you really need to do is check if the readLine() method returns null.


    String line;
    while ( ( line = br.readLine() ) != null ){
    //line...
Results 1 to 2 of 2