Silverfrost Forums

Welcome to our forums

95: Direct Access Error

16 Feb 2010 12:34 #5998

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

17 Feb 2010 11:59 #6013

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

Please login to reply.