ReferenceFilesystem

item:Append

Adds bytes to the end of the selected file. Include any desired line breaks yourself.

Syntax

item:Append(data: string) -> ()

Parameters

ParameterTypeDescription
datastringBytes to append.

Description

Call this method on an item returned by a file dialog. Items belong to the current session and should not be serialized for reuse after reconnecting.

Example

local item = openfiledialog()
if item then
    item:Append("another line\n")
end

These are Game executor contracts. Check build requirements and session lifetimes before using them.