AnsweredAssumed Answered

Writing to arbitrary place in a file using "To File"

Question asked by VRFuser on Mar 19, 1997
Item Subject: cc:Mail Text
     Hello.
    
     Is there a way to write data in the middle of the file stream, and not
     only at the beginning or the end?
    
     I have the following file structure:
     ----------------------------------------
     Header:
     crystal S/N
     Temp setpoint
     socket #
     Start time
     End time
     Number of measurements taken
    
     Data fields:
     TDS01
     freq01
     freq02
     ...
     freq101
    
     TDS1
     freq01
     freq02
     ...
     freq101
    
     timeerror, measlength, meastime, freq, temp

     real       real        real      real  real

     .......
     .......
     .......
     END
     -----------------------------------------
    
     What I need to be able to do is to write the data for TDS01 and TDS1
     after some timeerror, measlength, meastime, freq, temp data have been
     collected and then continue with writing timeerror, measlength,
     meastime, freq, temp data at the end of the file.
    
     Regards,
     Sergey
    

Outcomes