fileReadLine

Returns the next line from the file

fileReadLine(fileObj) → returns string

fileReadLine Argument Reference

fileObj
Required

file object previously opened with fileOpen()

Examples sample code invoking the fileReadLine function

// 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);
}

// Always Close
finally
{
	// Close File
	fileClose(fileObject);
}

Fork me on GitHub