![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
我的Linux学习笔记
我是浅陌呀
欢迎大家和我一起学习,共勉!
展开
-
2020-11-29
基于open函数和close函数的编程练习打开一个文件: 打开一个文件: 下面展示 文件打开关闭的示例代码。 // 该程序功能为以可读可写权限打开文件file1,并判断是否文件是否存在,不存在进行提示然后进行创建文件。然后判断创建是否成功。 // An highlighted block #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <stdio.h> in原创 2020-11-29 10:49:10 · 70 阅读 · 0 评论 -
2020-11-29
Linux 下常用的文件操作API函数open() and close()函数功能open() :close() :函数原型open()函数原型:close()函数原型:函数形参列表open():close():函数返回值open() :close() : open() and close() 函数功能 open() : 打开文件或者创建文件 close() : 关闭文件 函数原型 open()函数原型: int open(const char *pathname, int flags); int op原创 2020-11-29 10:23:53 · 93 阅读 · 0 评论