ACP4_1

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