Disclaimer
The goal of this library is to provide some WinAPI based file functions usually faster than the genuine ones, but with a similar syntax.
It is based on GPI's jaPBe source code (thanks). There is no FastFile code included, and it is not intended to compete with Ring's library.
I simply find it usefull.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
appreciate your efforts gnozal, opensource is fine as long as there are not too many strings atached/or you need a law degree to understand the licence, eg LGPL.
as for me, i don't touch GPL source at all, much prefer public domain.
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.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
I don't think either will be faster than v4's native file functions as they have been improved immensely over 3.94. I look at those 3rd party libs as being more or less "obsolete" since v4. Someone could correct me if I'm wrong.
The PureFILE library is faster than the genuine PB3.94 functions (I use it a lot).
But if you use PB4.00, you should use the genuine PB functions, since they are now buffered. The PB4.00 PureFILE version is only provided for compatibility reasons.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).