Skip to end of banner
Go to start of banner

writeToBinaryFile

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Syntax

writeToBinaryFile(filepath, bytes [, append])

Description

Prints in the specified bytes to a file. The file can be overwritten or appended to.

Parameters

Parameter name

Type

Required

Description

filepath

string

Yes

Specifies the file name to write in.

var

string

Yes

Specifies the character expression to write into the file filepath.

charset

string

No

Specifies the charset used to write that file.
Available starting with katl-commons 4.0.0.

boolean

boolean

No

'true' if new line is added after character expression is added to file, otherwise 'false'. Defaults to 'true'
Available starting with katl-commons 4.8.0.16.

Return type

Empty value. The returned value has no meaning.

Example

printInFile("C:/story.txt", "Once upon a time...");

Prints to the story.txt file the record Once upon a time...

Notes

It is recommended that you use forward slashes ( / ) for file paths. As a general observation use the silEnv() routine to create an absolute path.

See also



  • No labels