Difference between revisions of "FFLUSH()"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to flush internal buffer
 
Function to flush internal buffer
 
  
 
==Syntax==
 
==Syntax==
 
FFLUSH(<expN>)
 
FFLUSH(<expN>)
 
  
 
==See Also==
 
==See Also==
[[FCLOSE()]], [[FLUSH]], [[FOPEN()]], [[FWRITE()]], [[SET TBUFSIZE]]
+
[[FCLOSE()]], [[FOPEN()]], [[FWRITE()]]
 
+
  
 
==Description==
 
==Description==
 
The FFLUSH() function works in conjunction with the FOPEN() and FWRITE() functions to flush the internal buffer.  The <expN> is the file handle returned by the FOPEN() function.  The FFLUSH() function is used to bypass the I/O buffer and commit open text files to the current device.  The FCLOSE() function also flushes associated buffers as it closes the specified file.
 
The FFLUSH() function works in conjunction with the FOPEN() and FWRITE() functions to flush the internal buffer.  The <expN> is the file handle returned by the FOPEN() function.  The FFLUSH() function is used to bypass the I/O buffer and commit open text files to the current device.  The FCLOSE() function also flushes associated buffers as it closes the specified file.
 
  
 
==Example==
 
==Example==
Line 21: Line 17:
 
</code>
 
</code>
  
 
==Products==
 
Recital Server, Recital
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
[[Category:ASCII File Access]]
 
 
[[Category:ASCII File Access Functions]]
 
[[Category:ASCII File Access Functions]]

Latest revision as of 08:19, 4 February 2013

Purpose

Function to flush internal buffer

Syntax

FFLUSH(<expN>)

See Also

FCLOSE(), FOPEN(), FWRITE()

Description

The FFLUSH() function works in conjunction with the FOPEN() and FWRITE() functions to flush the internal buffer. The <expN> is the file handle returned by the FOPEN() function. The FFLUSH() function is used to bypass the I/O buffer and commit open text files to the current device. The FCLOSE() function also flushes associated buffers as it closes the specified file.

Example

fwrite(fp,"Hello World")
fflush(fp)