- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
As I tried to open an existing file and append more data to it using the following clause, I met open file error.
OPEN(25, FILE='DD.dat', ACTION='WRITE', STATUS='OLD', & POSITION='APPEND', IOSTAT=OPENSTATUS)
The OPENSTATUS showed me a positive value, 30. The file can't be opened. If I deleted POSITION='APPEND', then the file could be opened.
My operating system is Windows XP home edition, and it is visual fortran 6.0.
Did anybody meet this kind of problem before? and could give me a reply?
Thanks for your time.
Best
haizhang
Message Edited by haizhang on 04-24-2004 06:42 PM
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try:
open (25, file = 'DD.dat', status = 'unknown', access = 'append')
David
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page