LogiView

Command 'writeln'

     

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:

{INT_VAR} Integer variable with file ID number (is assigned when opening the file).
{EXPR_LIST} List of expressions of any type. Arguments (expressions) must be separated by colons.
-  
 

Return value:

 
-  
 

Return code:

 
0 No errors during command execution.
 

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:

Zeile 1
5
Zeile 2

Functions and commands: File Interface