Skip to content

FileSize

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

Blitz3DBlitzPlusBlitzBasic

FileSize

FileSize:Int32 file:String
Parameter Mode Type Default Description
file In String required The name of the file. Strings are stored with a 4 byte length in front, so "hello" takes 9 bytes.

Returns: The size of a file in bytes, or 0 when it does not exist.

Description

Not documented yet.

Examples

file = WriteFile("files_size_example.tmp")
WriteString file, "hello"
CloseFile file
Print FileSize("files_size_example.tmp")
DeleteFile "files_size_example.tmp"
9

Related Commands

CloseFile, CopyFile, DeleteFile, FilePos, FileType, NextFile, OpenFile, ReadFile

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally