File I/O

File Table

File discriptor

IO함수

파일 열기: open()

int open(const char *name, int flags)
int open(const char *name, int flags, mode_t mode) //O_CREAT 전용

파일 열기(+생성): creat()

int creat(const char *name, mode_t mode)
// open(file, O_WRONLY|O_CREAT|O_TRUNC, mode) 와 동일