fileReadPos

C Styled Script
Reference Manual

<< Back  End  Next >>
 
 
INDEX
Introduction
Installation
Using The CSS Executive
Language
Directives
System Library
String 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
C API
C++ API
CSS 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 ist 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 LandquartLast revised by Peter Koch, 24.02.00<< Back  Top  Next >>