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 _______________________________________________ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal