|
|
This command is used to write to a file line-by-line. Each value of any type expression is written to a line in the file. |
|||||||||
| This command must not be called with a conditional instruction. | ||||||||||
Syntax: |
||||||||||
| writeln({INT_VAR},{EXPR_LIST}) | ||||||||||
I/O parameters:
|
||||||||||
Return value: |
||||||||||
|
||||||||||
Return code: |
||||||||||
|
||||||||||
Example: |
||||||||||
| Declaration of Variables | ||||||||||
10 C Generating file "test.file"
20 DOCU_LOGIC_1=FALSE
30 DOCU_INT_1 = open("\tmp\test.file","w")
40 writeln(DOCU_INT_1,"Line 1")
50 writeln(DOCU_INT_1,5)
60 writeln(DOCU_INT_1,"Line 2")
70 close(DOCU_INT_1)
|
||||||||||
| Result: | ||||||||||
|
test.file:
|
||||||||||
|
Functions and commands: File Interface |