How to get the no of records in random acccess files
Visual Basic
2
Posts
2
Posters
0
Views
1
Watching
-
Hi Is there any direct way to get the number of records in random access files except by calculating the length of file and then dividing it by the length of each record. (Visual Studio 2003) Thanks
reman
-
Hi Is there any direct way to get the number of records in random access files except by calculating the length of file and then dividing it by the length of each record. (Visual Studio 2003) Thanks
reman
You have two choices. You can either "do the math", or you can read the entire file record-by-record and count them. There's no other way to do it.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007