Powered By Blogger

Monday, May 4, 2009

C Programming

#include
#include
void main()
{
clrscr();
FILE *fp;
char *fname,c;
printf("Enter the file address:");
gets(fname);
fp=fopen(fname,"w");
printf("Enter some thing:");
while((c=getchar())!=EOF)
{
putc(c,fp);
}
fclose(fp);
fp=fopen(fname,"r");
while((c=getc(fp))!=EOF)
putchar(c);
fclose(fp);
getch();
}

0 comments:

About This Blog

This is an important blog about updated news about computer science and technology.

Blog Archive

Visitors

  © Free Blogger Templates Blogger Theme II by Ourblogtemplates.com 2008

Back to TOP