FileBuffersSize()

Syntax

FileBuffersSize(#File, Size)
Description
Changes the size of the memory buffer used for file operations.

Parameters

#File The file to change. If #PB_Default is used as this parameter, then the new buffer size will apply to all newly opened files with OpenFile(), CreateFile() or ReadFile().
Size The new size (in bytes) for the memory buffer. A size of 0 disables memory buffering on the file.

Return value

None.

Remarks

For performance reasons, the buffer size should be kept large enough (1028 seems to be ok as a minimum). When buffers are used, the information is really written to the disk once the cache buffer is full or when the file is closed. The FlushFileBuffers() function forces the cache buffer to be written at the time the function is called. The default buffer size is 4096 bytes per file.

See Also

FlushFileBuffers()

Supported OS

All

<- Eof() - File Index - FileID() ->