FileReadLine

Returns the next line from the file object stream

Method Signature

FileReadLine(file=[any])

Arguments

Argument
Type
Required
Description
Default

file

any

true

The currently open file object

Examples

Opens a file, reads a line then closes it.

// Open File
var fileObject = fileOpen( "/path/to/file.txt" );
// Perform Actions
try {
	// Read Line
	writeOutput( fileReadLine( fileObject ) );
}
// Error Handling
 catch (any ex) {
	// Report Exception
	writeDump( ex );
}finally {
	// Always Close
	// Close File
	fileClose( fileObject );
}

Additional Examples

Last updated

Was this helpful?