中文
Appearance
File.ReadAllText(path)
File
读取并返回指定路径的文件中的所有字符。
string
function Test(file_path: string) { try { let content = File.ReadAllText(file_path); Debug.log(content); } catch (error) { Debug.Error(error); } }