xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

HB_FCommit()

Forces a disk write.

Syntax

HB_FCommit( <nFileHandle> ) --> NIL

Arguments

<nFileHandle>
This is a numeric file handle returned from function FOpen(), FCreate(), or HB_FCreate().

Return

The return value is always NIL.

Description

HB_FCommit() forces a hard disk write and flushes pending memory buffers to the file <nFileHandle>, previously opened with FCReate(), FOpen() or HB_FCreate().

The function is only required in multi-threaded programs when multiple threads write data to the same file handle.

Info

See also:HB_FCreate(), HB_OsError()
Category: File functions , Low level file functions , xHarbour extensions
Source:rtl\philes.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe