Re: backspace error (reading file from the end)
- From: Brooks Moses <bmoses-nospam@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 07 Aug 2006 09:42:40 -0700
Richard Maine wrote:
On Sun, 6 Aug 2006 23:03:51 -0700, leaf wroteBackspacing from the current record n is performed by rewinding to the
start of the file and then performing n-1 successive READs to reach the
previous record.
The standard says nothing like this. I didn't even think it was a particularly common implementation choice. Why would it be for formatted files in most current systems? I'd expect the system to be able to search backwards for the previous record terminator pretty easily. Since I tend to avoid BACKSPACE, I guess I'm not sure on this - I probably wouldn't have noticed. But still, such an implementation would moderately surprise me.
Plugging the phrase into Google indicates that "leaf" is quoting from the Compaq Fortran user manual. It would have been rather helpful if he'd said so, rather than implying that this was something of general applicability that he'd written himself.
- Brooks
--
The "bmoses-nospam" address is valid; no unmunging needed.
.
- Follow-Ups:
- Re: backspace error (reading file from the end)
- From: Jan Vorbrüggen
- Re: backspace error (reading file from the end)
- References:
- backspace error (reading file from the end)
- From: igor
- Re: backspace error (reading file from the end)
- From: leaf
- Re: backspace error (reading file from the end)
- From: Richard Maine
- backspace error (reading file from the end)
- Prev by Date: Re: Calling C from fortran
- Next by Date: Re: Save/restore data from a module?
- Previous by thread: Re: backspace error (reading file from the end)
- Next by thread: Re: backspace error (reading file from the end)
- Index(es):
Relevant Pages
|