Re: backspace error (reading file from the end)
- From: "leaf" <vuckerster@xxxxxxxxx>
- Date: 6 Aug 2006 23:03:51 -0700
Rules and Behavior
Use the BACKSPACE statement with files connected for sequential access.
BACKSPACE cannot be used to skip over records that have been written
using list-directed or namelist formatting.
The I/O unit number must specify an open file on disk or magnetic tape.
Backspacing 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.
A BACKSPACE statement must not be specified for a file that is open for
direct or append access, because n is not available to the Fortran I/O
system.
If a file is already positioned at the beginning of a file, a BACKSPACE
statement has no effect.
If the file is positioned between the last record and the end-of-file
record, BACKSPACE positions the file at the start of the last record.
.
- Follow-Ups:
- Re: backspace error (reading file from the end)
- From: Richard Maine
- Re: backspace error (reading file from the end)
- From: David Frank
- Re: backspace error (reading file from the end)
- From: igor
- Re: backspace error (reading file from the end)
- References:
- backspace error (reading file from the end)
- From: igor
- backspace error (reading file from the end)
- Prev by Date: Re: Spacing in derived data types, using SEQUENCE attribute, for MPI
- Next by Date: Re: Precision question
- Previous by thread: backspace error (reading file from the end)
- Next by thread: Re: backspace error (reading file from the end)
- Index(es):
Relevant Pages
|