Modules/FileSystem/file/readUShort: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ This function attempts to read an unsigned short (native type) from a file and returns it. The amount of bytes read should be two. ==Syntax== <syntaxhighlight lang="lua"> unsigned_short file:readUShort () </syntaxhighlight> ==Returns== Returns the unsigned short integer if it was successfully read from the file, '''false''' otherwise. ==Example== todo. {{:Modules/FileSystem/file/functions}}")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<pageclass class="#3cc882" subcaption="File function"></pageclass>
__NOTOC__
__NOTOC__
This function attempts to read an unsigned short (native type) from a file and returns it. The amount of bytes read should be two.
This function attempts to read an unsigned short (native type) from a file and returns it. The amount of bytes read should be two.
Line 12: Line 13:
==Example==
==Example==
todo.
todo.
{{:Modules/FileSystem/file/functions}}
{{:Modules/FileSystem/file/functions}}

Latest revision as of 03:01, 23 January 2022

This function attempts to read an unsigned short (native type) from a file and returns it. The amount of bytes read should be two.

Syntax

unsigned_short file:readUShort ()

Returns

Returns the unsigned short integer if it was successfully read from the file, false otherwise.

Example

todo.

FileSystem File Functions