TextFile_WriteLine()

Examples


The TextFile_WriteLine() function writes a line to a text file opened by the TextFile_Open() function.

Syntax

TextFile_WriteLine(file_ID, text)

Parameters

file_ID – An integer returned by TextFile_Open() that’s used to uniquely identify this file.

text – A string or text value containing the text that’s written to the text file.

Return value

A long integer indicating the number of characters written to the file.

Comments

A carriage return and a line feed will follow each line (DOS format). To enforce a DOS format regardless of the platform you’re using, use the TextFile_WriteDOS() function. To write characters to a text file without a carriage return and a line feed, use the TextFile_WriteText() function.


Documentation Feedback