Re: Writing a character to the beginning of the same file



In article <1114685495.313105.177700@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
mshyamrao@xxxxxxxxx says...
>
> Randy thanks very much. I thought someone would give me a better
> solution than this. I had worked on ur solution but it had taken lots
> of time to complete the process in the case of large files.

Well, if you had a file system that would let you do something like
reserve some spare space in the front of the actual start of the
file for this sort of thing (think small offset stored in the FAT
and special I/O calls to jack with it) it would be a lot easier.
In practice, it doesn't seem to be a big enough problem to justify
the hacks, so AFAIK, nobody every bothered to build a file system
optimized for single or small byte insertions at the beginning of a
file. *shrug*

> Any way thankx very much.

No problem.

--
Randy Howard (2reply remove FOOBAR)
"Making it hard to do stupid things often makes it hard
to do smart ones too." -- Andrew Koenig
.



Relevant Pages

  • Re: Reinstall Error
    ... Hello Jack ... the driver file that allows the system to read and write to NTFS file system drives. ... I suggest running ChkDsk or ScanDisk as a first step; then disable all file system filters such as virus scanners, firewall software, or backup utilities. ... I get to install the Motherboard Drivers from the floppy OK. ...
    (microsoft.public.windowsxp.general)
  • Re: MSDE Install Issues
    ... registry and the file system and have still been unable to make this work. ... Windows Installer is caching information on the installed instances of MSDE ... > Dr. Jack ...
    (microsoft.public.sqlserver.msde)
  • Re: Versioning file system
    ... Jack> The whole idea of the file system is that it wouldn't return the ... Jack> file in the file listing. ... This fs crashes and burns because the interface still isn't correct. ...
    (Linux-Kernel)
  • Re[2]: ffs_alloc panic patch
    ... the Windows does not show the blue screen in such ... In my practice I saw many times the situation of panic ... when file system was not fsck'd. ... > a corrupt filesystem, but we should attempt to isolate a single failing ...
    (freebsd-stable)
  • Re: cp - File Size limits ???
    ... jack wrote: ... About 2/3 of the way through, it dies with this message: ... Is the flash drive a "fat" file system? ... Since I think it is likely to be fat 16 I expect the ...
    (Ubuntu)