摘要:
#include <stdio.h> #define BUFSIZE 50 int main() { FILE* f; char buf[BUFSIZE] = "this is fputs function!\n hello fputs!"; f=fopen("D:\\1.txt","w"); if 阅读全文
posted @ 2022-01-14 10:21
晓风霜度-
阅读(239)
评论(0)
推荐(0)
摘要:
#include <stdio.h> int main() { FILE* fp; char buf[20]; //打开文件 fp = fopen("D:\\1.txt", "r"); //判断是否成功 if (fp == NULL) { printf("打开文件失败"); } //获取文件 whi 阅读全文
posted @ 2022-01-14 09:58
晓风霜度-
阅读(97)
评论(0)
推荐(0)

浙公网安备 33010602011771号