Re: Delete a line

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Larry Serflaten (serflaten_at_usinternet.com)
Date: 10/22/04


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



Relevant Pages

  • Re: PDP-11 OS Release Dates
    ... RAM means memory whose access time does not depend on ... Neither disk nor ... When an instruction completed its execution, ... and 727 Magnetic Tape Units. ...
    (comp.os.vms)
  • SYSGEN AUTOCONFIGURE and SCSI devices
    ... DB RP05, RP06 Disk ... DM RK06, RK07 Cartridge Disk ... MF TU78 Magnetic Tape ... XG DMF32 Synchronous Communications Line ...
    (comp.os.vms)
  • SYSGEN> AUTOCONFIGURE and SCSI devices
    ... DB RP05, RP06 Disk ... DM RK06, RK07 Cartridge Disk ... MF TU78 Magnetic Tape ... XG DMF32 Synchronous Communications Line ...
    (comp.sys.dec)
  • Re: Bulk erase methods
    ... bulk magnetic tape erasers were sold for erasing reel-to-reel ... Pull the trigger and run the disk over the side of the ... pitched any disk with more than a couple bad sectors. ...
    (sci.electronics.design)
  • Re: Wes "In Your Own Sweet Way" (2 extra beats ??)
    ... Sounds like a bad splice. ... so the engineer just did the best he could and hoped nobody would notice. ... I was listening to "In Your Own Sweet Way" played by Wes Montgomery on ... splice the magnetic tape. ...
    (rec.music.makers.guitar.jazz)