Teledyne-lecroy SierraFC Verification Script Engine Reference Manu Uživatelský manuál Strana 51

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 64
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 50
Verification Script Engine Reference Manual
46
22.2 CloseFile()
This function closes 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
22.3 WriteString()
This function writes 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
Zobrazit stránku 50
1 2 ... 46 47 48 49 50 51 52 53 54 55 56 ... 63 64

Komentáře k této Příručce

Žádné komentáře