Multichannel-systems NeuroExplorer Manual de usuario Pagina 159

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 373
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
Vista de pagina 158
1 2 ... 154 155 156 157 158 159 160 161 162 163 164 ... 372 373

Comentarios a estos manuales

Sin comentarios