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 - flush write records in the current alias to disk http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 flush               Write records in the current alias to disk
------------------------------------------------------------------------------
 Syntax
   [!sAlias] flush

 Arguments
   sAlias is the database to operate on.

 Description
   The flush command physically writes all database records associated with
   the current or specified alias that are stored in memory to disk.

   flush should be used when abnormal program termination is possible,
   or in network applications. Normal termination of a program or an
   explicit close of a database automatically writes all data from the
   buffers to disk.

 Example
   #define EXAMPLE_DATABASE
   #include example.hdr

   proc Test_flush
   open sTest
   !sTest flush // flush the database prior to running an external command
   run "dir"
   endproc

   proc main
   Test_flush()
   endproc

See Also: close

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