Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > VB Language Reference > Seek FunctionThis standard VB function returns the current file position for an open file. SyntaxReturnsThe position in the file for the next operation. UsageFor files opened in random mode, Seek returns the number of the next record to be read or written. For other modes, Seek returns the file offset for the next operation. The first byte in the file is at offset 1, the second byte is at offset 2, and so on. The return value is a long. ExampleThis example reads the contents of a sequential file line by line (to a carriage return) and displays the results. The second subprogram, (general) (declarations) Sub CreateFile Sub Button_Click See Also |
Siebel VB Language Reference |