CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2009
    Posts
    28

    Streams vs Strings - Windows Form app

    Hi all,

    I'm working on a Windows Forms application that basically needs to do multiple reads from a large text file and display certain values. I'm unsure what's best to use, strings - or streams. I have an openFileDialog reading the text into a rich text control using streams... but I'm much more used to the text searching functions that strings provide (find, length, substr etc), any advice for this kind of project would be welcome

    Thanks,

    Payne747

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Streams vs Strings - Windows Form app

    What do you mean by "Windows Forms Application"?

    Are you writing the code in managed C++ or are you referring to a "Windows Dialog App"?

  3. #3
    Join Date
    Sep 2009
    Posts
    28

    Re: Streams vs Strings - Windows Form app

    It will be .NET (so I guess very managed) :P

  4. #4
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

    Re: Streams vs Strings - Windows Form app

    [ redirected ]
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

  5. #5
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

    Re: Streams vs Strings - Windows Form app

    Define "large".

    If this will be a time consuming operation (regardless you use strings or streams) you should do the processing in a second, worker thread.
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

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