TextFile_WriteDOS()

Examples


The TextFile_WriteDOS() function writes a line to a text file opened by the TextFile_Open() function. It’s the same as the TextFile_WriteLine() function, except that it enforces a DOS text format.

Syntax

TextFile_WriteDOS(file_ID, text)

Parameters

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

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

Return value

A long integer containing the number of characters written to the text file.

Comments

DOS text formatting requires that a carriage return and line feed follow each line written to the text file. The TextFile_WriteLine() function automatically follows this format when used with Windows.


Documentation Feedback