Cicode Programming Reference > Cicode Function Categories > File Functions Introduction > FileWriteLn

FileWriteLn

Writes a string to a file, followed by a newline character. The string is written at the current file position.

Syntax

FileWriteLn(File, String)

File:

The file number.

String:

The string to write.

Return Value

The number of characters written (including the carriage return and newline characters).

Related Functions

FileOpen, FileClose, FileWrite

Example

! Write a line to the file.
FileWriteLn(File,"Line of file data");

See Also

File Functions