编程完成读出文件中的内容,反序输出到屏幕中 #include#include#include#define N 5000void main(){ FILE *sfp; int i; char buf[N]; if((sfp=fopen("c:\\datafile.txt","r"))==NULL) { printf("Source file cannot... Read More
posted @ 2007-05-03 23:52 齐心 Views(496) Comments(0) Diggs(0) Edit
1、编程实现读出磁盘文件datafile.txt中的内容,将它们显示在屏幕上 #include#include#includevoid main(){ FILE *fp; char ch; if((fp=fopen("c:\\datafile.txt","r"))==NULL) { printf("file cannot be opened!\n"); ... Read More
posted @ 2007-05-03 23:13 齐心 Views(526) Comments(0) Diggs(0) Edit