[fpc-pascal] Re: Fileread function (leledumbo)
michael.vancanneyt at wisa.be
michael.vancanneyt at wisa.be
Mon Apr 2 15:48:18 CEST 2012
On Mon, 2 Apr 2012, Luis Fernando Del Aguila Mejía wrote:
> 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
This is not possible.
>
> 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
This is correct.
Michael.
More information about the fpc-pascal
mailing list