FileWriteLine

Writes a line of data to a file

Method Signature

FileWriteLine(file=[any], data=[string])

Arguments

Argument
Type
Required
Description
Default

file

any

true

An existing file object or a path to a file

data

string

true

The line of data to be written

Examples

Script Syntax

myfile = fileOpen( "c:\temp\test1.txt", "write" );
fileWriteLine( myfile, "This line is new." );
fileClose( myfile );

Additional Examples

openFile = fileopen( filepath, "read" );
readfromfile = filereadline( openfile );
filewriteline( filepath, readfromfile );

Last updated

Was this helpful?