Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Appeding to a file



On Fri, 14 Jan 2005 21:19:28 -0500, Ron Sverdlove
<email@hidden> wrote:
> Marize,
> 
> The FILEOPT specifier is non-standard.  Since standard Fortran 77 did
> not have a way to open a file for appending, some compilers, such as the
> Sun compilers, accepted this form as an extension.  The standard
> specifier for this purpose in Fortran 90 and later is:
> POSITION='APPEND'   .
> 
> By the way, FILE=FILE(NC:) looks odd.  The FILE specifier should be set
> equal to a character expression, but FILE(NC:) is a character array
> expression:  all elements of the FILE array from position NC to the end.
> 
> Ron Sverdlove
> 

Hi,

Thanks for the prompt replies.

Ron, your sugestion got me on the right track.  f77 didn't like
POSITION='APPEND'.  But, if
one defines ACCESS='append' it all comes together.That is,

<code>
     OPEN(OLU,FILE=FILE(NC:),STATUS=STAT,ACCESS='APPEND',
   &       FILEOPT='EOF',IOSTAT=IOS)
</code>

Many thanks,
-- 
Marize Pommot-Maia
email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Fortran-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/fortran-dev/email@hidden

This email sent to email@hidden

References: 
 >Appeding to a file (From: Marize Pommot-Maia <email@hidden>)
 >Re: Appeding to a file (From: Ron Sverdlove <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.