Import_CloseFile()

Examples


The Import_CloseFile() function closes the text file opened by Import_OpenFile() and releases the file_ID.

Syntax

Import_CloseFile(file_ID)

Parameters

file_ID – The unique file ID assigned by Import_OpenFile().

Return value

An integer indicating the result of the file close. If 0 is returned, the function closed the file successfully. If the file_ID is returned, the function couldn’t close the file successfully.

Comments

Always close a text file once you’ve completed reading it, or if you receive an error condition while opening it using Import_OpenFile().


Documentation Feedback