Seek# Statement

सामाग्री
सूची 🔎︎

# Seek Statement

Sets the position for the next writing or reading in a file that was opened with the Open statement.

अनियमित पहुँच फाइलहरूका लागि, खोज प्रकार्यले पढिने अर्को रेकर्डको नम्बर फर्काउँछ ।

For all other files, the Seek statement sets the byte position at which the next operation is to occur.

### Syntax:

    Seek [#]filePos, {filePos|recordNum}

## Parameters:

fileNum: The data channel number used in the Open statement.

filePos, recordNum: Position for the next writing or reading. Position can be a number between 1 and 2,147,483,647. According to the file type, the position indicates the number of the record (files in the Random mode) or the byte position (files in the Binary, Output, Append or Input mode). The first byte in a file is position 1, the second byte is position 2, and so on.

### त्रुटि सङ्केतहरू

5 अवैध कार्य-विधि कल

52 खराब फाइल नाम वा नम्बर

सम्बन्धित शीर्षक

Open Statement

Seek function