---
title: "文件定位基准 | open.mp"
description: "文件定位基准定义（用于fseek函数）"
canonical: https://omp.itsneufox.com/zh-CN/docs/scripting/resources/file-seek-whence
language: zh-CN
---

# 文件定位基准

备注

这些定义适用于[fseek](https://omp.itsneufox.com/zh-CN/docs/scripting/functions/fseek)函数。

| 定义 | 说明 |
| --- | --- |
| seek\_start | 设置相对于文件起始位置的文件指针（定位参数必须为正值） |
| seek\_current | 设置相对于当前文件位置的偏移量（定位参数将叠加到当前位置） |
| seek\_end | 设置相对于文件末尾的位置（定位参数必须为零或负值） |
