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

FileWrite

Writes a string to a file. The string is written at the current file position.

Syntax

FileWrite(File, String)

File:

The file number.

String:

The string to write.

Return Value

The number of characters written.

Related Functions

FileOpen, FileClose, FileWriteLn

Example

! Write to the file.
FileWrite(File,"Data");

See Also

File Functions