CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 1999
    Posts
    22

    Urgent!! finding a string in a file

    I got a file here,and there are a number of data. What I need to do is that I will go through the file, and finding the letter "T" in the file. Then I save the letter and all related data into another new file. My question is how to go through the file and find the letter"T" in the file. And how to put the letter and the related data into the new file??
    Anyone can help me out, I will very appreciated.


  2. #2
    Join Date
    May 1999
    Location
    Sydney, Australia
    Posts
    420

    Re: Urgent!! finding a string in a file

    read a chunk of the file into memeory and scan for a 'T'
    then, you need of course to know what the SIZE of the related data is already, so read it from memory and save it in a the new file

    sally


  3. #3
    Join Date
    Apr 1999
    Location
    CA, USA
    Posts
    78

    Re: Urgent!! finding a string in a file

    Can you explain more detail of the content of your file? Maybe someone can give you more hints.


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