Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>fwritebyte() - write 1 byte to a file</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     fwritebyte() - write 1 byte to a file
  Usage:    <logical> = fwritebyte(<handle>,<byte>)
  Params:   integer <handle> from a previous fopen() or fcreate()
            integer <byte> - unsigned integer to write to the file,
            not greater than 255
  Returns:  logical .T. if byte written successfully, .F. if error

 ---------------------------------- Example ---------------------------------

                 handle = fcreate("test.txt")
                 fwritebyte(handle,24)

  Note:     The file pointer is moved ahead 1 byte. If an error
            occurs, a .F. is returned. fwritebyte() negates the
            need to use the i2bin() function to write a byte to
            a file.


See Also: fwriteint() freadbyte() freadint() freadlong() fwritelong()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson