FileWriteShortInt()

Summary

Writes a short (2-byte) integer to a binary file.

Syntax

FileWriteShortInt(file f, integer value)

Argument Contents
f A file handle
value Value to be written

Notes

  • FileWriteShortInt() only writes values in the range -32768 to 32767. Smaller or larger values will cause an error.

Error Codes

Error Type Meaning
Error Cannot write to the file (e.g., value out of range, out of disk space, the file is not open, or the file is open in the wrong mode)

See Also

Function Summary
CloseFile() Closes a file
FileReadShortInt() Reads a short (2-byte) integer from a binary file
OpenFile() Opens a text or binary file on disk