摘要:
#include <stdio.h> #include "stdlib.h" // 字符串读写函数: 将字符串追加到指定文件中,并显示出来 void testFgetsFputs(){ FILE *fp; // 要写入的字符串 char str[100]; // 文件路径 char filePath 阅读全文
摘要:
#include <stdio.h> #include "stdlib.h" // 读取文件内容到程序 void readFile1(){ FILE *fp; char inputFile[20]; printf("Please input the file path:\n"); gets(inpu 阅读全文