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

Thread: FSO

  1. #1
    Join Date
    Aug 2000
    Posts
    13

    FSO

    Is it possible to read through a file a line at a time and delete whatever lines meet a criteria that you set?


  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: FSO

    You can read 1 line at a time, but you cannot delete it. If you need to delete certain lines, just read line by line and line that you don't want to delete write to the different file. Skip to write lines that you don't want to delete. When you finish writing to the new file, delete the old one and rename the new one.

    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

  3. #3
    Join Date
    Aug 2000
    Posts
    13

    Re: FSO

    Thank you!!


  4. #4
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: FSO

    Rate it if it helped you

    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

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