FileBuffersSize()

Syntax

FileBuffersSize(#File, Size)
Description
Change the size of the buffers for the specified file. This method is available for advanced users, to allow to tune the file access performances. The default buffer size is 4096 bytes per file. If the 'Size' is put to 0, then all caching is disabled, and all write operations are immediately written to the disk.

Note: For performance reason, the buffer size should be kept large enough (1028 seems to be ok as 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() command allow to force the write of the cache buffer at any time.

Supported OS

All

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