* G77 binary file access
@ 2002-01-14 9:11 Lichtenberger Janos
2002-01-15 15:51 ` Toon Moene
0 siblings, 1 reply; 2+ messages in thread
From: Lichtenberger Janos @ 2002-01-14 9:11 UTC (permalink / raw)
To: gcc-help; +Cc: lityi
Hello,
Is it possible to open raw binary file (i.e. without any record structure)
with G77 OPEN statement or the fputc/fgetc is the only (not very comfortable)
way to acces raw data.
In other Fortran dialects (like DEC, SGI IRIX, or Microsoft for PCs :-)) there
are additional options to ANSI FORTRAN 77 of OPEN statement, like
form='binary' or access='stream'. I have not found any suitable set of options
for this purpose. Can you help me?
Best regards,
Janos Lichtenberger
--
Janos Lichtenberger
Space Research Group,
Eotvos University,
Budapest, Pf 32 H-1518 Hungary
Tel: +36-1-372 2934
Fax: +36-1-372 2927
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: G77 binary file access
2002-01-14 9:11 G77 binary file access Lichtenberger Janos
@ 2002-01-15 15:51 ` Toon Moene
0 siblings, 0 replies; 2+ messages in thread
From: Toon Moene @ 2002-01-15 15:51 UTC (permalink / raw)
To: Lichtenberger Janos; +Cc: gcc-help
Lichtenberger Janos wrote:
> Is it possible to open raw binary file (i.e. without any record structure)
> with G77 OPEN statement or the fputc/fgetc is the only (not very comfortable)
> way to acces raw data.
No, with g77 you have the following options:
1. Use fputc/fgetc (as above).
2. Use a direct access file with RECL=1 and read every character as
a single byte "record".
> In other Fortran dialects (like DEC, SGI IRIX, or Microsoft for PCs :-)) there
> are additional options to ANSI FORTRAN 77 of OPEN statement, like
> form='binary' or access='stream'. I have not found any suitable set of options
> for this purpose. Can you help me?
Sorry, no other options than the above ...
Kind regards,
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-01-15 23:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-14 9:11 G77 binary file access Lichtenberger Janos
2002-01-15 15:51 ` Toon Moene
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).