Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Grumpfish Library 3.2 - <b>gfreadline()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GFREADLINE()

    This function reads in the next string (i.e., up to the next
    Carriage Return/Line Feed combination) from an open text file.

    Syntax

    GFREADLINE(@<string>, <handle>)

    Required Parameters

    <string> is the character variable which will hold the string. NOTE:
    this must be passed by reference (preceded by a "@")!!

    <handle> is the file handle to read the string from.  It assumes
    that the file is already open.  The file handle would have been
    returned from either FOPEN() or FCREATE().

    Return Value

    GFREADLINE() returns a logical value: True (.T.) if successful,
    False (.F.) if it reaches the end of the file.

    Sample Usage

    handle = FOPEN("test.txt")          
    DO WHILE GFREADLINE(@buffer, handle)
       ? buffer                         
    ENDDO                               

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson