2 closefile(), Lose – Teledyne LeCroy Verification Script Engine for Teledyne LeCroy PETracer Reference Manual User Manual

Page 71

Advertising
background image

Teledyne LeCroy

Verification Script Engine Reference Manual

Version 6.6x

66

17.2 CloseFile()


This function closes an opened file.


Format:

CloseFile( file_handle )


Parameters:

file_handle

File “handle”


Example:

set file_handle = 0;

file_handle = OpenFile( “D:\\Log.txt” ); # opens file, the previous contents are

# erased.


WriteString( file_handle, “Some Text1” ); # write text string to file
WriteString( file_handle, “Some Text2” ); # write text string to file

CloseFile( file_handle ); # closes file


Advertising