Multichannel-systems NeuroExplorer Manuale Utente Pagina 145

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 373
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la 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
Vedere la pagina 144
1 2 ... 140 141 142 143 144 145 146 147 148 149 150 ... 372 373

Commenti su questo manuale

Nessun commento