Linux-文件操作(open、write、read、close、iotcl)_open write-CSDN博客

网站介绍:文章浏览阅读3.8k次,点赞2次,收藏11次。首先,介绍一下linux环境下简单c程序的执行与运行,就以HelloWorld为例。建立并编写一个.c文件。 命令:touch helloWorld.c 编写文件内容:vim helloWorld.c(当然,也可以用emacs,个人不喜欢emacs) 文件中的内容:#include #include int main(){ printf("Hel_open write