The FileLen procedure that was explained on the site returns the size of a file in bytes. However, this is quite useless, especially if it is a random file with records. To get the records I've done different crazy stuff such as dividing the FileLen by the size of a default record and then rounding it to the nearest number...it works but there has to be a smarter way of doing it. (for example in Turbo Pascal, filesize(somefile) returns the number of records in a file, not its size in bytes). Any such commands in VB??