Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

File I/O

FunctionDescriptionExample
파일읽기(경로)Read file to string파일읽기("data.txt")
파일쓰기(경로, 내용)Write string to file파일쓰기("out.txt", "hello")
파일추가(경로, 내용)Append to file파일추가("log.txt", "line\n")
파일존재(경로)Check if file exists파일존재("data.txt")/거짓

Example: Read and Process

시도 {
    변수 내용 = 파일읽기("data.txt")
    변수 줄들 = 내용.분리("\n")
    반복 줄 안에서 줄들 {
        출력(줄)
    }
} 처리(오류) {
    출력(형식("파일 오류: {0}", 오류))
}