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 the tuning of the file access performance. The default buffer size is 4096 bytes per file. If the 'Size' is specified as 0, then all caching is disabled and all write operations are immediately written to the disk.
If '#File' is set to #PB_Default, then the default buffer size value will be changed to the specified 'Size': all further calls to OpenFile(), CreateFile() and ReadFile() will be use this new value.
Note: 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.
Supported OS
All