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: Re: Problem with BufferedReader : readLine() cut the line

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

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

    I'm having the exact same problem. readLine() is cutting a line in the middle. The line also contains toString() versions of UUIDs, as what looks to be the case of OP.

    The weirdest thing is that it manages to process tens of thousands of lines with the same kind of data, and around line 32k the problem happens.

    This is the line in the file:

    0608 84424c 54a76548-275d-4dbc-8 97af9846-5395-40fd-9 405e0e82d1e9b-b 33122 ae81bfb0-ccc6-4c7a-ae0c-a016ef 8000f CR5a88f5b0081f504db00a1c500074fc21638AGRIFRPP835 GL8964710001000206 91e5df50-ad93-43af-b0ad-5df1ff4a394d 10082 PA5b74e83c-bb3c-411f-a927-c8da4f88932d33122 fcacd8a3-ed35-41de-8978-c18243

    This is how the line is read by BufferedReader:

    0608 84424c 54a76548-275d-4dbc-8 97af9846-5395-40fd-9 405e0e82d1e9b-b 33122 ae81bfb0-ccc6-4c7a-ae0c-a016ef 8000f CR5a88f5b0081f504db00a1c500074fc21638AGRIFRPP835 GL8964710001000206 91e5df50-ad93-43af-b0ad-5df

    @Norm, the cut happens in between the characters f1. Their hexa representation seems to be 6631 according to this site.

    Anybody has any idea of what's going on?


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

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

    Please don't hijack someone else's very old post. I have moved your post to the correct location.

Similar Threads

  1. Problem with BufferedReader : readLine() cut the line
    By mfgagne73 in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: May 3rd, 2012, 10:18 AM
  2. 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
  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