|
| View previous topic :: View next topic |
| Author |
Message |
Rik
Joined: 15 Feb 2005 Posts: 1
|
Posted: Tue Feb 15, 2005 1:43 am Post subject: fortran open append |
|
|
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 |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Tue Feb 15, 2005 1:50 pm Post subject: |
|
|
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 |
|
 |
|
|
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 © 2001, 2002 phpBB Group
|