fileClose

Closes an on-disk or in-memory file that is open.

fileClose(fileObj) → returns void

fileClose Argument Reference

fileObj any
Required

A file object

Examples sample code invoking the fileClose 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