# FileSeek()

Shifts the file pointer to the given position.

The file must be opened with seekable option

```
FileSeek( file=any, pos=number );
```

**Returns:** void

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| file | any | Yes | The file object. *Alias: source, filepath, fileObj* |  |
| pos | number | Yes | The position in a file within a stream where the following read and write operation must occur. |  |

# Examples

```cfml
fileseek("example.txt",1);
```







# Categories

[File handling](../../categories/files.md)