Topic complex |
Text functions |
Function |
write() |
Short |
Writes a string to a text file |
Syntax |
WRITE(t : INTEGER; s : STRING) : STRING |
Parameter |
t : text handle from REWRITE or TAPPEND
s : STRING |
Return |
s (is returned unchanged) |
See also: |
|
Description |
If t=0, it is written to StdOut.
Attention: tdbengine works internal in ASCII format. If a file should be written in ANSI format the string must be formatted according to that:
WRITELN(t,OEMTOANSI(s))
The better oportunity is to open the file in ANSI mode:
t:=rewrite(Textdatei,0)
writeln(t,s)
|