CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 31

Threaded View

  1. #12
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: ABOUT STRING READING FROM textfile

    so, seems as if you're looking for a way to read the file as a bounch of records and that those records might have different length. Moreover you cannot change the file itself to make sure it can respect a true standard as per start and end of records.
    Not an easy job, but regExp can help in parsing it.
    I am not reading it each time , I read it all at once to load the listBox, and in listBox I put objects that hold all infos. It might be done better (could be faster, smarter,...) but have a look at how I loaded listbox and then how richtextbox is populated on (single) click
    Attached Files Attached Files
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured