Closefile(), Writestring(), Showinbrowser() – Teledyne LeCroy SATracer 3G Verification Script Engine manual User Manual
Page 55: Lose, Rite, Tring, Rowser, 2 closefile(), 3 writestring(), 4 showinbrowser()
![background image](/manuals/353603/55/background.png)
LeCroy Corporation
Verification Script Engine Reference Manual
Version 1.01
17.2 CloseFile()
This function closes an opened file.
Format :
CloseFile( file_handle )
Parameters:
file_handle - the file “handle”.
Example:
…
set file_handle = 0;
file_handle = OpenFile( “D:\\Log.txt” ); # opens file, the previous contents will
be
…
# 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
…
17.3 WriteString()
This function writes a text string to the file.
Format :
WriteString( file_handle, text_string )
Parameters:
file_handle - the file “handle”.
text_string - the text string”.
Example:
…
set file_handle = 0;
file_handle = OpenFile( “D:\\Log.txt” ); # opens file, the previous
contents will be
…
# 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
…
17.4 ShowInBrowser()
This function allows you to open a file in the Windows Explorer. If the extension of the file has
the application registered to open files with such extensions – it will be launched. For instance, if
50