WAP file handling program
#include<stdio.h>
#include<conio.h>
void main ()
{
file* fp;
char ch;
fp= fopen ("one.text", "w");
printf( "enter data");
while ((ch=get char())!=EOF)
{
putc(ch,fp);
}
fclose (fp);
fp= fopen("one.txt","r");
while ((ch=getc() !=EOF)
printf ("%c",ch);
fclose (fp);
getch ();
}
No comments:
Post a Comment
If you have any doubts, Please lets me know and Please Follow our Website