Get your own free workspace
View
 

WriteFloat

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

 

 

WriteFloat

Usage:

                WriteFloat(Handle, Value)

Description:

The WriteFloat command writes a value to a file as a float (four bytes), at the current file position. The file position is then advanced by four bytes.

The Handle parameter is the file handle returned by ReadFile, WriteFile or OpenFile. Value is the number to write to the file, and can be any real number.

Example:

                Function Main()
                        F = WriteFile("Test.dat")
                                WriteFloat(F, 3.1415926536)
                        CloseFile(F)
                        Return()
                End Function

Comments (0)

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