This is probably a simple question. How do I append data to a Random Access File? For a brand new record I want to add the record to the end of the file BUT I cannot add more data pass the length of the record.
I seek the last valid record, go to the end of it and then add the new record but I cannot do this because I am going past the length of the file.
If there is a deleted rec, that I will use that position but if there are no deleted records, then I have append a new record to end of the file