
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>fwritelong() - write a long integer to a file</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Name: fwritelong() - write a long integer to a file
Usage: <logical> = fwritelong(<handle>,<longint>)
Params: integer <handle> from a previous fopen() or fcreate()
integer <longint> - unsigned integer to write to the file
Returns: logical .T. if long written successfully, .F. if error
---------------------------------- Example ---------------------------------
handle = fcreate("test.txt")
fwritelong(handle, 1000001)
ftop(handle)
? freadlong(handle)
* prints 1000001
Note: The file pointer is moved ahead 4 bytes. A long value is
in the range 0 to 4,294,967,295 and occupies 4 bytes in the
file in low byte/high byte notation. Using freadlong()
eliminates the need to use the l2bin() function.
See Also: freadint() freadbyte() fwritebyte() fwriteint() freadlong()
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson