write-line


(write-line string [ fileHandle ] )

This function writes the string to command line or specified file fileHandle.

Arguments

string  (string) the string to be written (to command line or file)
fileHandle  (file handle, optional) the file handle of an opened file; if omitted, output is sent to command line

Return

the string value

Example

(write-line "here comes the sun")  "here comes the sun" "here comes the sun"  writes to command line
(write-line "here comes the sun" fhandle)  "here comes the sun"  writes to the specified file

Remarks

text content requires the file (if specified) to be opened in text mode, not in binary mode;
a newline character is not automatically added !
see (open) function



©  Bricsys NV. All rights reserved.