Libraries
Tee file Source Code
 previous   up   next 

Types
teeFile
File implementation type to write to several destination files at once.

teeFile

const type: teeFile

File implementation type to write to several destination files at once.


Function Summary
file
openTee (in array file: destFiles)
Open a tee file to write to the destination files given in destFiles.
file
openTee (in file: destFile1, in file: destFile2)
Open a tee file to write to the destination files destFile1 and destFile2.
void
write (inout teeFile: outFile, in string: stri)
Write the string stri to outFile.
void
writeln (inout teeFile: outFile)
Write end-of-line to outFile.
void
flush (inout teeFile: outFile)
Forces that all buffered data of outFile is sent to its destination.

Function Detail

openTee

const func file: openTee (in array file: destFiles)

Open a tee file to write to the destination files given in destFiles.

Parameters:
destFiles - Array with destination files.
Returns:
the teeFile opened.

openTee

const func file: openTee (in file: destFile1, in file: destFile2)

Open a tee file to write to the destination files destFile1 and destFile2.

Parameters:
destFile1 - First destination file.
destFile2 - Second destination file.
Returns:
the teeFile opened.

write

const proc: write (inout teeFile: outFile, in string: stri)

Write the string stri to outFile. The characters are forwarded to all destination files.


writeln

const proc: writeln (inout teeFile: outFile)

Write end-of-line to outFile. The end-of-line is forwarded to all destination files.


flush

const proc: flush (inout teeFile: outFile)

Forces that all buffered data of outFile is sent to its destination. This causes that all destination files are flushed.



 previous   up   next