I am writing a program that makes use of a random mode file to store equipment numbers. When executed on an NT or 2000 machine it works great. When executed on a 98 machine it works fine when the file is first initialized, but everytime after that give an error "bad record length".

The file has about 600 records and stops on record 50 when the error is given.

This is how I open the file:
Open "c:\temp\data.ran" For Random As #1

This is how I close it:
Close #1

The program has to be demonstrated on a 98 machine, so I would like to find a fix. Can anyone help?