Version: 2023.2
言語: 日本語

File

class in UnityEngine.Windows

マニュアルに切り替える

説明

ファイル操作のための静的メソッドを提供します

The UnityEngine.Windows.File class is available only for the Universal Windows Platform. It was recommended during the times in which the System.IO.File class was not available for the Universal Windows Platform. Now, the System.IO.File class is available for the Universal Windows Platform, and Unity recommends not using the UnityEngine.Windows.File class anymore, but the System.IO.File class instead.

Static 関数

Delete指定したファイルを削除します
Exists指定したファイルが存在するかどうか
ReadAllBytesバイナリファイルを開き、バイト配列としてファイルのコンテンツを読み取ります。そしてファイルを閉じます。
WriteAllBytes新しくファイルを作成し、指定したバイト配列でファイルに書き込みます。そしてファイルを閉じます。対象のファイルがすでに存在する場合は、上書きされます。