随笔分类 -  文件操作

摘要:https://blog.csdn.net/q278233370/article/details/99681142 输入一个目录,输出目录下面所有文件的大小时间戳 #include <unistd.h> #include <stdio.h> #include <errno.h> #include < 阅读全文
posted @ 2020-08-10 11:05 cicero 阅读(319) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> #include <stdlib.h> #include <unistd.h> #include <fstream> using namespace std; void dofile(char *filename) { FILE *f;long len;cha 阅读全文
posted @ 2020-06-19 20:59 cicero 阅读(230) 评论(0) 推荐(0) 编辑
摘要:一,打开本地文件1.txt,并保存数字1-5到文件中(文本方式),从文件中读出数字1-5显示在终端 二,打开本地文件1.txt,并保存数字1-5到文件中(二进制方式),从文件中读出数字1-5显示在终端 阅读全文
posted @ 2018-11-14 16:19 cicero 阅读(521) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示