お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
Namespace: UnityEngine.Windows
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Closeファイル操作のための静的メソッドを提供します
これはSystem.IO.Fileクラスの代替です。
Delete | 指定したファイルを削除します |
Exists | 指定したファイルが存在するかどうか |
ReadAllBytes | バイナリファイルを開き、バイト配列としてファイルのコンテンツを読み取ります。そしてファイルを閉じます。 |
WriteAllBytes | 新しくファイルを作成し、指定したバイト配列でファイルに書き込みます。そしてファイルを閉じます。対象のファイルが既に存在する場合は、上書きされます。 |