FileGetPos: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:
==Syntax==
==Syntax==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
number fileGetPos ( file theFile )
int fileGetPos ( file theFile )
</syntaxhighlight>
</syntaxhighlight>



Revision as of 08:17, 16 January 2008

Returns the current read/write position in the given file.

Syntax

int fileGetPos ( file theFile )

Required Arguments

  • theFile: the file handle you wish to get the position of.

Returns

Returns the file position if successful, or false if an error occured (e.g. an invalid handle was passed).

Example

See Also