TextFile_WriteText()

Examples


The TextFile_WriteText() function writes a line to a text file opened by the TextFile_Open() function without including a line feed or carriage return. In contrast, the TextFile_WriteDOS() function includes a line feed and carriage return.

Syntax

TextFile_WriteText(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 text file.

Comments

You can write a line to a text file, enforcing a line feed and carriage return at the end of each line, using TextFile_WriteDOS().

You can also write a line using the TextFile_WriteLine() function. However, this function writes a line to a text file differently, depending upon the platform you’re using. A carriage return and a line feed will follow each line (a DOS format).


Documentation Feedback