🟧WriteString

Function writes a string in a binary write.

File:WriteString( string str )

Usage Example

local f = file.Open( "my-file.dat", "wb", "DATA" )
if not f then return end
f:WriteString( "Hello World" )
f:Close()

Last updated