open V.S. fopen
# 關鍵字 : open, read, write、fopen, fread, fwrite、file descriptor(fd)、information node(inode)、File Pointer # 如何解決 : (問題解釋 & 步驟) # open, read, write : 檔案 I/O 。prototype : open() 系統呼叫 ``` #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> int open(const char *name, int flags); int open(const char *name, int flags, mode_t mode); ``` #include <unistd.h> // read(), write(), close() ssize_t read(in...