Teledyne-lecroy Verification Script Engine (VSE) Manual Uživatelský manuál Strana 93

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 115
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 92
Teledyne LeCroy Verification Script Engine Reference Manual
Page 93 of 115
19.3 WriteString()
This function writes a text string to the file.
Format: WriteString(file_handle, text_string)
Parameters:
file_handle File "handle"
text_string Text string
Remarks:
If the file_handle parameter refers to a text file, then a trailing End-Of-Line symbol is added to the text. In case
of binary files, the End-Of-Line symbol is not added.
Example:
set file_handle = 0;
file_handle = OpenFile("D:\\Log.txt"); # Opens text 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); # Close the file.
Zobrazit stránku 92
1 2 ... 88 89 90 91 92 93 94 95 96 97 98 ... 114 115

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

Žádné komentáře