[fpc-pascal] Re: Fileread function (leledumbo)

Luis Fernando Del Aguila Mejía aguila3000 at gmail.com
Mon Apr 2 15:44:29 CEST 2012


El 02/04/2012 05:00 a.m., fpc-pascal-request at lists.freepascal.org escribió:
> Do you mean if FileRead executed when the file pointer is at the end of file,
> it would wrap around to the beginning?
Yes, it is possible?
Example, is it correct?:

  FileWrite(Arch,b,40); // Write 40 bytes
  FileRead(Arch,b,40); //Read 40 bytes

or, is this correct?:

  FileWrite(Arch,b,40); // Write 40 bytes
  Fileseek(Arch,0,fsFromBeginning)); //Move to begining
  FileRead(Arch,b,40); //Read 40 bytes

thanks, sorry for my bad english



More information about the fpc-pascal mailing list