PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

fortran open append

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
Rik



Joined: 15 Feb 2005
Posts: 1

PostPosted: Tue Feb 15, 2005 1:43 am    Post subject: fortran open append Reply with quote

Hi,

I am an experienced vax/vms fortran programmer and now starting to work on a linux computer. I would like to known how I should implement the following statement:

Open( unit=1,file="test.txt",access="append",form="formatted",status="unknown")

In a test program the compiler complains that he finds an unknown value. The documantation tells that append it added to match the vax/vms statement.

If someone can point me in the right direction, thanks.

Rik
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6208
Location: The Portland Group Inc.

PostPosted: Tue Feb 15, 2005 1:50 pm    Post subject: Reply with quote

Hi Rik,

The valid values for ACCESS are DIRECT or SEQUENTIAL. To append to the end of a file set POSITION to APPEND.

Example:

Code:
     Open( unit=1, file="test.txt", access="sequential",
    &      form="formatted", status="unknown",
    &      position="append")


Hope this helps,
Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group