linux 編程筆記 2

1.使用create建立文件: #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <unistd.h> int main() { int res = creat("./file.txt", 0700); if (res == -1) { perror("Create File
相關文章
相關標籤/搜索