Multichannel-systems NeuroExplorer Manuale Utente Pagina 147

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 373
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 146
5.5.1.5. ReadLine Function
ReadLine Function
Reads a line from the text file.
Syntax
double ReadLine(fileID, string lineString)
Parameters
Parameter Type Description
fileID double File ID received from OpenFile function.
lineString string String that receives the text from the file.
Returns
Returns 1 if more text to read is available in the file, otherwise, returns 0.
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 145
Vedere la pagina 146
1 2 ... 142 143 144 145 146 147 148 149 150 151 152 ... 372 373

Commenti su questo manuale

Nessun commento