Skip to main content

エイリアス

  • readfileasync

引数

string
必須
separator normalization、workspace-boundary checks、filename/extension checks の後に workspace 内へ解決される File path。Absolute paths は workspace 内に解決される場合だけ受け入れられます。

戻り値

string
File contents は明示的な長さを持つ Lua string として返されます。null bytes、line endings、BOM bytes などの bytes は readfile によって変換されません。

例

existing workspace file から bytes を読みます。