Skip to content

WriteInt

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

Blitz3DBlitzPlusBlitzBasic

WriteInt

WriteInt:Void stream:Int32, int:Int32
Parameter Mode Type Default Description
stream In Int32 required The stream to write to.
int In Int32 required The value to write.

Description

Writes an integer in 4 bytes, low byte first.

Examples

file = WriteFile("streams_int_example.tmp")
WriteInt file, 123456789
WriteInt file, -42
CloseFile file
file = ReadFile("streams_int_example.tmp")
Print ReadInt(file)
Print ReadInt(file)
CloseFile file
DeleteFile "streams_int_example.tmp"
123456789
-42

Related Commands

ReadInt, WriteByte, WriteFloat, WriteLine, WriteShort, WriteString

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally