ACP4_2

//BCA Support //www.bcasupport.xyz #include <stdio.h> void main() { FILE *fp; char fname[13]; int size=0; clrscr(); printf("\nEnter file name : "); gets(fname); fp=fopen(fname,"r"); if(fp==NULL) { printf("Error in finding file."); getch(); exit(); } while(!feof(fp)) { ftell(fp); fgetc(fp); } size=ftell(fp); printf("\nSize of file : %d bytes",size); 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.