Skip to content
Saiko

appendfile

Appends string data to the end of a file inside the executor's workspace, creating it when missing.

Signature

luau
appendfile(path: string, data: string): ()

Parameters

pathstring

Path relative to the workspace folder.

datastring

Text to append.

Returns

Nothing.

Example

luau
writefile("log.txt", "first\n")
appendfile("log.txt", "second\n")
print(readfile("log.txt")) --> first and second on separate lines