随笔分类 - 文件操作
摘要:https://blog.csdn.net/q278233370/article/details/99681142 输入一个目录,输出目录下面所有文件的大小时间戳 #include <unistd.h> #include <stdio.h> #include <errno.h> #include <
阅读全文
摘要:#include <iostream> #include <stdlib.h> #include <unistd.h> #include <fstream> using namespace std; void dofile(char *filename) { FILE *f;long len;cha
阅读全文
摘要:一,打开本地文件1.txt,并保存数字1-5到文件中(文本方式),从文件中读出数字1-5显示在终端 二,打开本地文件1.txt,并保存数字1-5到文件中(二进制方式),从文件中读出数字1-5显示在终端
阅读全文