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>freadint() - read in an integer from a file</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     freadint() - read in an integer from a file
  Usage:    <integer> = freadint(<handle>)
  Params:   integer <handle> - handle from a previous fopen()
  Returns:  unsigned integer equal to two bytes read in low byte/high
            byte notation, -1 for error

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

                 handle = fopen("test.txt")
                 mrow = freadint(handle)
                 mcol = freadint(handle)

  Note:     The file pointer is moved ahead 2 bytes. If an error
            occurs a -1 is returned. A integer is in the range from
            0 to 65535 and occupies 2 bytes in the file in low
            byte/high byte notation.


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

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