VimMing

导航

2016年3月4日 #

第三章 文件IO复习

摘要: open(const char * path, int flag.../*mode_t*/) #include <fcntl.h> path:绝对路径 flag:O_RDONLY,O_WRONLY,O_RD_WR只能选一个,其他的flag通过"|"(或)添上。 作用:打开一个文件,或创建一个文件 # 阅读全文

posted @ 2016-03-04 09:42 VimMing 阅读(142) 评论(0) 推荐(0) 编辑