Put with no record/byte number
I thought that Put Statement without Record or Byte number resulted in Put after last byte in File (or at last Seek position). At least that is what my Language reference manual says. You need two commas to indicate missing parameter.
I think you might have to Open in Append Mode if not a binary File (Not sure about this).
Put staement how do you add a record to the end of a file i.e after the last record
Peak thanks but that didn't work it always returned 2.
Guv thanks for the idea I looked up peak on the MSDN and found what I needed. All I needed was this one line I think?
MaxSize = LOF(1) \ Len(Q2) ' Get number of records in file.
Didn't need this stuff below
' The loop reads all records starting from the last.
'For RecordNumber = MaxSize To 1 Step -1
' Seek FileNum, RecordNumber ' Set position.
' Get FileNum, , Q2 ' Read record.
'Next RecordNumber