Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - _hfile file handle http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _HFILE              File handle
------------------------------------------------------------------------------
 Declaration
   fileio.hdr

 Syntax
   typedef uint _HFILE

 Description
   The _HFILE type is used to declare a file handle. A file handle
   is returned by the fbopen() and fbreopen() functions, and used
   by the other binary file functions.

 Example
   #define EXAMPLE_TYPE
   #include example.hdr

   proc Test_HFILE
   vardef
      _HFILE hFile1, hFile2
   enddef
   if fbopen( hFile1, "c:\autoexec.bat", FB_READ )
      hFile2 := fbreopen( hFile1 )
      ? hFile1, hFile2
      fbclose( hFile1 )
   endif
   endproc

   proc main
   Test_HFILE()
   endproc

See Also: fbopen() fbreopen()

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