Skip to content

Enum

Enum.FileMode

Controls whether FileSystemService normalizes line endings when reading or writing files.

Official docs ↗
ItemValueSummary
Enum.FileMode.Binary0Reads or writes raw bytes with no line-ending transformation, preserving all characters exactly as stored on disk.
Enum.FileMode.Text1Reads or writes file content with \r\n sequences normalized to \n, ensuring consistent line endings across platforms.

Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com.