From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12107 invoked by alias); 15 Jan 2002 23:51:09 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 12066 invoked from network); 15 Jan 2002 23:51:07 -0000 Received: from unknown (HELO laptop.moene.indiv.nluug.nl) (195.109.255.217) by sources.redhat.com with SMTP; 15 Jan 2002 23:51:07 -0000 Received: from local ([127.0.0.1] helo=moene.indiv.nluug.nl) by laptop.moene.indiv.nluug.nl with esmtp (Exim 3.12 #1 (Debian)) id 16QdM0-0001kn-00; Wed, 16 Jan 2002 00:50:56 +0100 Message-ID: <3C44C05E.50381FED@moene.indiv.nluug.nl> Date: Tue, 15 Jan 2002 15:51:00 -0000 From: Toon Moene Organization: Moene Computational Physics, Maartensdijk, The Netherlands X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.17 i686) X-Accept-Language: en MIME-Version: 1.0 To: Lichtenberger Janos CC: gcc-help@gcc.gnu.org Subject: Re: G77 binary file access References: <200201141619.RAA00164@sas.elte.hu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-01/txt/msg00159.txt.bz2 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)