Skip to content

ReadFile

Claude edited this page Oct 26, 2026 · 5 revisions

ReadFile

Command Index · BlitzBasic · Files

ReadFile filename$  ; returns Int

Works in: Blitz2D, BlitzPlus, Blitz3D

Opens an existing file for reading, starting at its beginning.

Print ReadFile("files_read_nothing_here")
0
Parameter Type Default Description
filename String required The file to open.

Returns: A file handle, or 0 when the file does not exist, which you should always check.

Related commands

Command Index · BlitzBasic · Files

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

Clone this wiki locally