Multichannel-systems NeuroExplorer Manuel d'utilisateur Page 159

  • 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 158
5.5.1.17. FileSeek Function
FileSeek Function
Repositions file pointer by the specified offset.
Syntax
double FileSeek(fileID, offset, type)
Parameters
Parameter Type Description
fileID double File ID received from OpenFile function.
offset double Number of bytes to move the file pointer.
type string Pointer movement mode. Should be "begin",
"current" or "end".
Returns
The new byte offset from the beginning of the file.
Comments
FileSeek(file,0,"end") returns file size in bytes. FileSeek(file,0,"current") returns current file position.
Usage
NexScript
% open binary file in read mode
file = OpenFile("C:\binaryfile.dat", "r")
% get file length
fileLength = FileSeek(file, 0, "end")
% move pointer 4 bytes from the beginning of the file
newPosition = FileSeek(file, 4, "begin")
See Also
Introduction to NexScript Programming
NexScript Function Categories
Page 157
Vue de la page 158
1 2 ... 154 155 156 157 158 159 160 161 162 163 164 ... 372 373

Commentaires sur ces manuels

Pas de commentaire