Re: Edit text file.
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
Michael,
> read the file in memory
> alter the line
> write the file back to disk ( overwite the original file for instance )
>
I find that a dangerous operation, I advice forever first to rename the old
one (better put it in the temp), and after the succesful write delete that
:-)
Cor
.
Relevant Pages
- Re: Save Options a Bit Confusing
... Copy?Creates and saves a copy of the file in memory to disk with a name you ... If you enter a new file path or name for the file, the original file on ... update callers in memory to refer to the new file. ... (comp.lang.labview) - Re: can see but not read files after running chkdsk /r on the drive
... you made two terrible mistakes: ... So I don't have any original file left. ... I ran the chkdsk from the original win XP installation cd. ... Which disk did you run chkdsk on - the original disk or the ... (microsoft.public.windowsxp.general) - Re: fopen() questions
... The errno offers little help here, ... whether the destination is unreachable, ... into the new file, then if there is a hiccup, disk issue &c, you would ... destroy the original file if it did indeed exist. ... (comp.lang.c) - Re: Disk Scan
... these files ever since W95 through to XP. ... original file name to restore them and that's not easy. ... > created while scanning my laptop for problems with the hard drive. ... (microsoft.public.windowsxp.general) - Re: Losing Packets
... in the "General Tab" look at the size (NOT size on disk) and note down ... run both original file and copied file thru the checksum program ... (microsoft.public.windows.server.general) |
|