ACP4_4

//BCA Support //www.bcasupport.xyz #include <stdio.h> void main() { FILE *fp; char fname[13]; int a; clrscr(); for(a=1;a<101;a++) { printf("%d\n",a); delay(50); } printf("\n\nEnter file to copy to : "); flushall(); gets(fname); fp=fopen(fname,"w"); if(fp==NULL) { printf("\nError in creating file."); getch(); exit(); } for(a=1;a<101;a++) { fprintf(fp,"%d\n",a); } printf("\nCopied Successfully!"); fcloseall(); getch(); }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.