Get your own free workspace
View
 

WriteShort

Page history last edited by Gamemaster 3 years, 9 months ago

 

 

WriteShort

Usage:

                WriteShort(Handle, Value)

Description:

The WriteShort command writes a value to a file as a short (two bytes), at the current file position. The file position is then advanced by two bytes.

The Handle parameter is the file handle returned by ReadFile, WriteFile or OpenFile. Value is the number to write to the file, and should be between 0 and 65535.

Example:

                Function Main()
                        F = WriteFile("Test.dat")
                                WriteShort(F, 10000)
                        CloseFile(F)
                        Return()

                End Function

Comments (0)

You don't have permission to comment on this page.