Previous: SetString procedure To the Table of Content Next: Sin function

- 4.62.2.80 -
Standard Units
System Unit
System Unit Procedures and Functions

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.


Previous: SetString procedure To the Table of Content Next: Sin function
SetString procedure Table of Content Sin function

- 4.62.2.80 -