#include<stdio.h>
main ()
{
clrscr();
FILE * pFile;
pFile = fopen("z123example.txt" , "w" );
fputs ( "This is an apple." , pFile );
fseek ( pFile , 2 , SEEK_SET );
fputs ( "Kapil" , pFile );
fclose ( pFile );
getch();
}
No comments:
Post a Comment