I have the following type defination in my code
ChartNumber As Long
EmployeeNumber As Long
ChartDay As Byte
ChartMonth As Byte
ChartYear As Integer
ChartDeleted As Byte
this defination is used when reading and writing to a binary file using the following Var
Public CChart As ColorChart
I am currently looping through each records in the binary file to read in the records. (this is an old app and the data structure was designed before I came along)
I have been told that if I read a couple of records into a Buffer at 1 time that this would be the fastest way of reading the file.
How do I use a buffer - and how do I calculate how may records I can read into a buffer?