Teledyne-lecroy SierraFC Verification Script Engine Reference Manu Manual de usuario Pagina 51

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 64
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
Vista de pagina 50
1 2 ... 46 47 48 49 50 51 52 53 54 55 56 ... 63 64

Comentarios a estos manuales

Sin comentarios