Re: NEW_LINE()
From: James Giles (jamesgiles_at_worldnet.att.net)
Date: 10/02/04
- Previous message: Dan Tex1: "Re: Mission-Critical Fortran"
- In reply to: Walter Spector: "Re: NEW_LINE()"
- Next in thread: Jan Vorbrüggen: "Re: NEW_LINE()"
- Reply: Jan Vorbrüggen: "Re: NEW_LINE()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 02 Oct 2004 06:33:07 GMT
Walter Spector wrote:
> James Giles wrote:
>>
>> glen herrmannsfeldt wrote:
>> ...
>>> In the case of C, the library converts between newline terminated
>>> lines and the record structure of the file system.
>>
>> I just read the appropriate parts of the C standard and I find no
>> mention of that. The description of fscanf, for example, says
>> nothing about it. Nor, can I see any reason (in any language)
>> to use stream I/O on text files, instead of record based I/O,
>> if the data on the stream is modified in that way. It eliminates
>> the whole value of the concept.
>
> In the C 'fopen' library routine, one can add the letter 'b' to the
> file mode to turn on 'binary' mode. The default is 'text' mode.
> In my copy of C89 (November 9, 1987 draft) this is described in
> §4.9.2.
OK. Now I see it. But, as I said before, that means the decision
is independent of whether you use formatting on the file or not.
As Fortran 2003's implementation of streams works, it introduces
no functionality that non-advancing formatted I/O doesn't already
provide in F95.
-- J. Giles "I conclude that there are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies and the other way is to make it so complicated that there are no obvious deficiencies." -- C. A. R. Hoare
- Previous message: Dan Tex1: "Re: Mission-Critical Fortran"
- In reply to: Walter Spector: "Re: NEW_LINE()"
- Next in thread: Jan Vorbrüggen: "Re: NEW_LINE()"
- Reply: Jan Vorbrüggen: "Re: NEW_LINE()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|