No subject
Tue Jun 11 14:29:31 CEST 2019
not seem that I can be sure that "Count" records are read using blockread.
Since my data should be read to a buffer I would like to do something like:
count := MAX_BUFFER_SIZE;
reached_index := 1;
repeat
begin
blockread(fout, (pointer to buffer[reached_index]), count, actual_count);
dec(count, actual_count);
inc(reached_index, actual_count);
end;
until ((count = 0) or (err <> 0));
Where I'm not sure how to semantically write (pointer to
buffer[reached_index]). Any ideas?
Best regards Preben
More information about the fpc-pascal
mailing list