Teledyne-lecroy SAS_SATA Protocol Suite Verification Script Engine Instrukcja Użytkownika Strona 67

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 97
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 66
67
18.2 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
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.
18.3 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.
Przeglądanie stron 66
1 2 ... 62 63 64 65 66 67 68 69 70 71 72 ... 96 97

Komentarze do niniejszej Instrukcji

Brak uwag