Skip to content

ReadFile

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions

Blitz3DBlitzPlusBlitzBasic

ReadFile

ReadFile:Int32 filename:String
Parameter Mode Type Default Description
filename In String required The file to open.

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

Description

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

Examples

Print ReadFile("files_read_nothing_here")
0

Related Commands

CloseFile, CopyFile, DeleteFile, NextFile, OpenFile, ReadDir, SeekFile, WriteFile

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally