Multichannel-systems NeuroExplorer Manual de usuario Pagina 145

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 373
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 144
5.5.1.3. OpenFile Function
OpenFile Function
Opens text file using the specified mode, returns file ID.
Syntax
double OpenFile(string filePath, string mode)
Parameters
Parameter Type Description
filePath string Full path of the file.
mode string File open mode. Can be either "r", "rt" (read), "w" or
"wt" (write).
Returns
Returns file ID.
Comments
None
Usage
NexScript
% open a file in read mode
file = OpenFile("C:\parameters.txt", "r")
% read all the lines in the file and print them
if file > 0
line = " " % make line a string variable
while ReadLine(file, line) > 0
Trace(line)
end
CloseFile(file)
end
See Also
Introduction to NexScript Programming
NexScript Function Categories
Page 143
Vista de pagina 144
1 2 ... 140 141 142 143 144 145 146 147 148 149 150 ... 372 373

Comentarios a estos manuales

Sin comentarios