fileReadLine

C Styled Script
Reference Manual

<< Back  End  Next >>
 
 
INDEX
Introduction
Installation
Using The CSS Executive
Language
Directives
System Library
String Library
Regular Expression Lib.
File Library
   fileClose
   fileCopy
   fileDelete
   fileDelDir
   fileEof
   fileFlush
   fileInfo
   fileLocate
   fileMakeDir
   fileOpen
   fileRead
   fileReadLine
   fileReadPos
   fileRename
   fileTempName
   fileWrite
   fileWriteLine
   fileWritePos
Database Library
C API
C++ API
CSS Links
  
fileReadLine(
  const handle)   // file handle

Reads a line from file. For best results the file should not be opened in binary mode (otherwise there may be cr's at the end of the returned text).

Check for eof before reading.

Returns the line (the terminating LF character is removed).

Example:

// show contents of file test.txt
var fh = fileOpen('test.txt', fileOpenRead);
while (!fileEof(fh)) sysLog(fileReadLine(fh));
fileClose(fh);
 Copyright © IBK LandquartLast revised by Peter Koch, 24.02.00<< Back  Top  Next >>