Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Problem with BufferedReader : readLine() cut the line

  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry Problem with BufferedReader : readLine() cut the line

    My problem is the following :
    I have a CSVReader file done with Bufferedreader, it's really stange I have a CSV file with 86 fields and containt 4679 line .. the BuferedReader works fine. I got each lines.
    But I have an other CSV file with 87 fields , I juts add an extra field from the previous file.
    The buffered reader stuck at the line 25 and get just a part of it.

    the extra field contain value like this c203eb08-54d2-2356-b7654-45bd5fd1uf56

    If I change this value for joe example ... my CSVreader works fine ...

    When I'm tracking the code the problem is comming from the method readLine().

    So do you have an idea ?

    I tried to change my CSV Reader class to user scanner but I gor the same problem

    Thanks

    Marie


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,164
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Problem with BufferedReader : readLine() cut the line

    Can you look at the input file in a hexeditor and see what bytes are in the file where the read problem is?
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Problem with Reading very long line using bufferedReader
    By nicool in forum File I/O & Other I/O Streams
    Replies: 6
    Last Post: November 7th, 2011, 01:32 PM
  2. Replies: 2
    Last Post: November 6th, 2011, 02:33 PM
  3. (.readLine() method) of BufferedReader class
    By chronoz13 in forum File I/O & Other I/O Streams
    Replies: 7
    Last Post: October 13th, 2009, 06:59 PM
  4. How to Read a file line by line using BufferedReader?
    By JavaPF in forum File Input/Output Tutorials
    Replies: 0
    Last Post: May 19th, 2008, 06:32 AM
  5. How to Read a file line by line using BufferedReader?
    By JavaPF in forum Java Code Snippets and Tutorials
    Replies: 0
    Last Post: May 19th, 2008, 06:32 AM