Chris Devol <xy*@defghijk.lmn> wrote:
Chris Devol <xy*@defghijk.lmn> wrote: I don't think you can edit a file directly on the disk.
Yes you can - there's no problem doing that. You can't insert or delete
bits from the start of middle of the file, of course, but that's a
different matter.
It seems to me that inserting and deleting is what "editing" is. So
if you can't insert/delete then you can't edit. Or am I missing something?
Yes. You can overwrite. Consider a file which has fixed length records
- it's perfectly possible to overwrite those records with new ones.
Alternatively, you might have something which goes through an assembly
marking all public methods as internal, or vice versa - something which
just requires changing a single byte for each method. No need to read
the whole file in and write it all out again.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too