Multichannel-systems NeuroExplorer Manuel d'utilisateur Page 147

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 373
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 146
1 2 ... 142 143 144 145 146 147 148 149 150 151 152 ... 372 373

Commentaires sur ces manuels

Pas de commentaire