StartIntroduction
sUNC Reference
Closures
Debug
Drawing
Encoding
Environment
Filesystem
appendfiledelfiledelfoldergetcustomassetisfileisfolderlistfilesloadfilemakefolderreadfilewritefile
Instances
Metatable
Miscellaneous
Reflection
Scripts
Signals
WebSocket
Related to sUNC docsOfficial reference
Filesystemreadfile
Filesystem

readfile

Reads an entire file.

Related to sUNC documentation

This page follows the official sUNC reference.

Signature

Luau
function readfile(path: string): string

Returns

The file contents.

PreviousmakefolderNextwritefile
On this pagesUNC sourceSignatureReturns