Go to: Synopsis. Return value. Related. MEL examples.
fwriteAllLines
string string[]
fwriteAllLines is NOT undoable, NOT queryable, and NOT editable.
The fwriteAllLines command writes all lines of text to a file. Existing files will be overwritten.int | Zero if success |
// Write lines of text to a file // string $exampleFileName = ( `internalVar -userTmpDir` + "example.tmp" ); string $linesToWrite[] = {"Hello there", "MEL user"}; int $result = fwriteAllLines($exampleFileName,$linesToWrite);