suve

awful: function: f-getln

Available since rev.36 (v.0.5.0).

Declaration

ascii :f-getln ( file $FILE )

Summary

Reads a line from FILE and returns it as a string. The file should be open for reading.

Example

# :f-getln example
:set &path s''
:readln $path
:set &file :f-open $path
:writeln :f-getln $file
:f-close $file

wikistrona zmodyfikowana 2014/0609/2305