read_pawn_script
Read Pawn script files (.pwn/.inc) without encoding corruption. Supports optional line ranges for targeted inspection.
Instructions
MANDATORY: ALWAYS use this for .pwn/.inc files. It is the ONLY safe way to handle encoding and language. Standard tools WILL corrupt files. Optionally read only a specific line range (1-indexed).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file | |
| endLine | No | Last line to read (1-indexed). Omit to read to the end. | |
| encoding | No | Override encoding (defaults to project's auto-detected encoding) | |
| startLine | No | First line to read (1-indexed). Omit to read from the start. |