forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

95: Direct Access Error

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
SMECPMS



Joined: 12 Feb 2010
Posts: 5

PostPosted: Tue Feb 16, 2010 1:34 am    Post subject: 95: Direct Access Error Reply with quote

I am trying to correct an error in my Fortran 95 application (I am using FTN95 Express). I was able to correct the error in debug mode and when using a sample application with a release build but when using it combined with the system that is required for testing it fails with the 95: Direct Access Error exception. Where it is failing the Status of the file is 'REPLACE', should I be using a different status setting?

yours sincerely

Craig Hoy
_________________
Craig Hoy | Programming and Development
SMEC Australia Pty Ltd
craig.hoy@smec.com
Back to top
View user's profile Send private message
IanLambley



Joined: 17 Dec 2006
Posts: 490
Location: Sunderland

PostPosted: Wed Feb 17, 2010 12:59 pm    Post subject: Reply with quote

Try something like:

open(unit=10,file='myfile.aaa',status='unknown',access='direct',recl=100)

You should be able to create a new file, read and write to an old one including adding new records.
Ian
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
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 © 2001, 2005 phpBB Group