Re: Delete a line
From: Larry Serflaten (serflaten_at_usinternet.com)
Date: 10/22/04
- Next message: Nak: "WARNING: Unable to find dependency 'mscorlib'"
- Previous message: Larry Serflaten: "Re: Why Does This Fail ( Threading )"
- In reply to: Vexander: "Delete a line"
- Next in thread: Chris Dunaway: "Re: Delete a line"
- Reply: Chris Dunaway: "Re: Delete a line"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 22 Oct 2004 04:15:46 -0500
"Vexander" <Vexander@discussions.microsoft.com> wrote
> How on earth do I read a lin from a text file, compare it to a string, and
> the delte it if they are the same.
Think of a file as data recorded on magnetic tape. VHS video is recorded on
magnetic tape, and what you want to do is like watching a program and deleting
all the commercials. You can't just delete them because you'd leave blank
spaces where the commercials were. You either have to physically cut and
splice the tape, or record it to a new tape, without the comercials....
The data on a disk is just like that, each piece of data has a physical location.
You can't expect them to move if you try to delete one, you can only over-
write it with something else. Since you can't cut and splice a disk, your only
option is to copy the data to a new file, minus all the stuff you want to delete.
LFS
- Next message: Nak: "WARNING: Unable to find dependency 'mscorlib'"
- Previous message: Larry Serflaten: "Re: Why Does This Fail ( Threading )"
- In reply to: Vexander: "Delete a line"
- Next in thread: Chris Dunaway: "Re: Delete a line"
- Reply: Chris Dunaway: "Re: Delete a line"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|