is ok?

#include<stdio.h>
#include<STRING.H>
void main()
{
	FILE * fp;
	fp=fopen("noexist","a+");
	
	if(fp==NULL) return;

	 char yufei[1024];
	 strcpy(yufei, "libiao");
	 printf("yufei");
	 //yufei="wqeqw";
     fputs (yufei,strlen(yufei),fp);
	//	
	 fget(yufei,1024,fp);/*读入一行*/
	fclose(fp);
}  


#include<stdio.h>
#include<STRING.H>
void main()
{
	FILE * fp;
	fp=fopen("noexist","a+");
	
	if(fp==NULL) return;

	 char yufei[1024];
	 strcpy(yufei, "libiao");
	 printf("yufei");
	 //yufei="wqeqw";
     fputs (yufei,strlen(yufei),fp);
	//	
	 fget(yufei,1024,fp);/*读入一行*/
	fclose(fp);
}  

  

posted @ 2011-08-12 18:08  HiLuf  阅读(177)  评论(0编辑  收藏  举报