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



In article <4270F6E8.697D0E43@xxxxxxxxxxxx>, dpbozarth@xxxxxxxxxxxx
says...
> SAM wrote:
> ...
> > 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.
>
> There <is> no better solution w/ sequential files...
>
> As someone else noted, the one way around is to use random access file
> structure or treat a sequential file as random access...

Or use a file-like object that acts like a sequential file but is
structured as a series of separate files. (Somewhat like a deque
implementation.)

- Gerry Quinn
.