Multichannel-systems NeuroExplorer Manual do Utilizador Página 147

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 373
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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
Vista de página 146
1 2 ... 142 143 144 145 146 147 148 149 150 151 152 ... 372 373

Comentários a estes Manuais

Sem comentários