You are reading a single comment by @TheBrick(Tommy) and its replies. Click here to read the full conversation.
  • Just from the context, it sounds like thats right.. You need to allocate the size of your the record, which is the sum of the size of its elements, so just 1 * integer_bytesize if there's just one of them.

    Out of curiosity, what are you working with?

    Fucking fortran. Trying to do direct access. I've given up because when reading you have to specify the record e.g

    read(11,REC=1) var

    which if I read in unformatted gives gobadly gook. and if I read in formatted

    e.g

    read(11,'(I2)',REC=1) var

    gives me error in my record number (REC), changing the REC to be gives me different error of non valid REC or something I forget.

    Done a hack of sequential access but opening and closing the file, string recognition and some other bullshit that in any other language would not be needed. The amount of fannying around I have to do gets on my tits.

About