fileReadPos

C Scripting Language
Reference Manual
Version 4.4.0

<< Back  End  Next >>
 
 
INDEX
Introduction
Installation
Using the CSL executive
Language
Directives
System library
String library
Math library
Regular expression lib.
File library
   fileClose
   fileCopy
   fileDelete
   fileDelDir
   fileEof
   fileFlush
   fileInfo
   fileLocate
   fileMakeDir
   fileOpen
   fileRead
   fileReadLine
   fileReadPos
   fileRename
   fileTempName
   fileWrite
   fileWriteLine
   fileWritePos
Database library
Async Communication
Registry/Profile handling
Windows control
C API
C++ Class Interface
CSL links
  
fileReadPos(
  const handle,      // file handle
 [const newpos]);    // new position if supplied

Queries file read pointer. If a new position is given as 2nd argument, the read pointer is moved to that position.

Examples:

var pos = fileReadPos(fh);  // query current position
fileReadPos(fh, 100);       // seek to 100
fileReadPos(fh,fileReadPos(fh)-5); // seek back 5 chars
  Copyright © IBK Landquart Last revision: 27.05.2002 << Back  Top  Next >>