# FileMode（ロブロックス 列挙型（Enum））

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

- URL：https://roblox.minecraft-okinawa.com/reference/enums/FileMode/
- 公式：https://create.roblox.com/docs/reference/engine/enums/FileMode

## 選べる値

- Enum.FileMode.Binary（0）：Reads or writes raw bytes with no line-ending transformation, preserving all characters exactly as stored on disk.
- Enum.FileMode.Text（1）：Reads or writes file content with \r\n sequences normalized to \n, ensuring consistent line endings across platforms.

英語の説明とメンバー一覧：Roblox Creator Documentation（CC BY 4.0）。日本語の解説はこのサイト独自のものです。

執筆：鈴木孝昌（現役プロジェクトマネージャー／プログラミング講師）／運営：沖縄マイクラ部 プログラミングスクール「クロスウェーブ」（https://minecraft-okinawa.com/）