Delete a line in a text file
From: Francis Ang (FrancisAng_at_discussions.microsoft.com)
Date: 06/11/04
- Next message: Steved: "Macro"
- Previous message: Francis Ang: "Re: Delete a line in text file"
- In reply to: AA2e72E: "RE: Delete a line in a text file"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 10 Jun 2004 20:27:01 -0700
Thanks AA2e72E for your suggestion.
"AA2e72E" wrote:
> You need to read the existing file and write out the required lines to a new file, then delete the existing file and rename the new one to the same name.
>
> If the lines that you want to omit can be dropped with SQL, you can use the ODBC text driver & ADO to select the lines you want. Then use the GetString method to write the lines to a new file. Amount to the same thing!
>
- Next message: Steved: "Macro"
- Previous message: Francis Ang: "Re: Delete a line in text file"
- In reply to: AA2e72E: "RE: Delete a line in a text file"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|