Skip to main content

Aliasy

  • readfileasync

Argumenty

string
wymagane
File path rozwiazywany wewnatrz workspace po separator normalization, workspace-boundary checks oraz filename/extension checks. Absolute paths sa akceptowane tylko jesli rozwiazuja sie wewnatrz workspace.

Zwroty

string
File contents sa zwracane jako Lua string z jawna dlugoscia. Bytes takie jak null bytes, line endings i BOM bytes nie sa transformowane przez readfile.

Przykład

Odczytaj bytes z existing workspace file.