How can Xfile.eof be represented in another way?

csimoneauxcsimoneaux Member Posts: 168
xfile.pos
Xfile.read
Xfile.len
File.read(file.pos) = File.len
File.read = File.len

I believe it is File.read = File.len
Am I right?

Comments

  • SavatageSavatage Member Posts: 7,142
    search & read & you shall find :D

    Read the whole post to understand..
    http://www.mibuso.com/forum/viewtopic.php?p=19192
    Backi wrote:
    MRQ wrote:
    Q7)Xfile.EoF how can u represent it in another way
    1.xfile.pos
    2.xfile.read
    3.xfile.len
    4.file.read(file.pos)= file.len
    5.file.read= file.len

    Hi it is Answer 4
    Example:
    WHILE f.POS < f.LEN DO BEGIN
    f.READ(Zeile);
    ...
    END;
    
    POS is indicating the Position in the File
    LEN is the File Size.
    The While Statement above works as long, pos is smaller then len.
    If there are Equal you are at "EOF".
Sign In or Register to comment.