Preben Mikael Bohn preben at chin.dk
Wed Mar 19 18:16:52 CET 2003

 Ivan Montes wrote:
> blockread( f, buffer[ integer index starting at 0 ], desired_bytes_to_read,
> actual_bytes_readed );
> if you don't want to redefine the type of "buffer" you can type-cast it when
> calling blockread
> i.e: pByte( buffer ) [ index ]

OK, thanks, I'll try that.

> anyway I don't see what you want to do with that procedure, since you set a
> maximum value for the buffer but you don't check if the file is larger than
> the buffer. Recursive calls will overwrite the contents of the buffer.

I know that the file is larger at all times (since that is what my program do).

Best regards Preben

More information about the fpc-pascal mailing list