OPEN LEN=reclen Effect on Sequential File Buffering and Speed (22021)
This article was previously published under Q22021
SUMMARY
QuickBasic Versions 2.00, 2.01, and 3.00 don't behave according to the
following statement on Page 370 of the "Microsoft QuickBasic Compiler"
manual for Versions 2.00, 2.01, and 3.00, which discusses the
recordlength option of the OPEN statement for sequential files:
When used to open a sequential file, recordlength specifies the
number of characters to be loaded to the buffer before it is
written to, or read from, the disk. A larger buffer means more room
taken from Basic, but faster file I/O.
Changing the LEN=reclen statement will not change the sequential
file-access speed or buffering for QuickBasic Versions 2.00, 2.01, or
3.00, but WILL change speed and buffering for QuickBasic 4.00 and
later versions.
For greater file-access speed, boot with a BUFFERS=20 statement in
your CONFIG.SYS file (DOS configuration file) on the root directory of
your start-up disk.
Modification Type: |
Minor |
Last Reviewed: |
1/9/2003 |
Keywords: |
KB22021 |
|