Go to main content

getline

Get a line

GETLINE

NAME

getline - Get a line from a file content

SYNOPSIS

getline(file_descriptor)

DESCRIPTION

This function is get a line from a file.

EXAMPLES

ct = open(stdin:true);
c = getline(ct);
all_line = "";
while c do
    all_line .+= c;
    c = getline(ct);
endw
close(ct);

 

SEE ALSO

 

{{ include("includes/files.sn") }}

AUTHOR

Written by Pierre Laplante, <laplante@sednove.com>

MODIFICATIONS

1.0 2020-02-22 21:24:14 laplante@sednove.com

Edit

© 2021 extenso Inc. All rights reserved.