Skip to main content

별칭

  • readfileasync

인수

string
필수
separator normalization, workspace-boundary checks, filename/extension checks 후 workspace 안으로 resolve 되는 File path 입니다. Absolute paths 는 workspace 안으로 resolve 될 때만 허용됩니다.

반환값

string
File contents 는 명시적 길이를 가진 Lua string 으로 반환됩니다. null bytes, line endings, BOM bytes 같은 bytes 는 readfile 에 의해 변환되지 않습니다.

예제

existing workspace file 에서 bytes 를 읽습니다.