Sequential Files

02-05-2002, 07:23 PM
Is there a way to make a program figure out how many items are in a sequential file?

02-05-2002, 11:44 PM
The only way I know is to flick through each one until EOF, and keep count.

Sequential files are best used for storing a volume of data about a single object. Something where there will not be many of them at a time, and it is not worth having a user type for it.

Otherwise random access files are vastly superior.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum