- 4.67.2.80. -
Table of Contents
4. Standard Units
4.67. System - Built-in routines
4.67.2. System Unit Procedures and Functions
4.67.2.80. SetTextBuf procedure
4.67.2.80. SetTextBuf procedure
Targets: MS-DOS, OS/2, Win32
System Unit
Assigns an I/O buffer to a text file.
Declaration:
procedure SetTextBuf(var F: Text; var Buf[; Size: LongInt]);
Remarks:
F is a text file that has not yet been opened.
Buffer is a variable of any type. Size, if specified,
is the size of the new buffer. Otherwise
SizeOf(Buffer) is assumed.
Note that the new buffer's size is not limited to 65,535 (64K) bytes.
SetTextBuf assigns a new buffer to the text file.
By creating a larger buffer I/O operations become faster
because there are fewer disk reads and writes.
- 4.67.2.80. -