item:Read
Reads the bytes of the chosen file. Access is limited to the user’s selection; a changed or missing file can raise an error.
Syntax
item:Read() -> string
Returns
| Type | Description |
|---|---|
string | Selected file contents. |
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
print(item:Read())
end
These are Game executor contracts. Check build requirements and session lifetimes before using them.
