read a document in c getting name from console

Solutions on MaxInterview for read a document in c getting name from console by the best coders in the world

showing results for - "read a document in c getting name from console"
Beatrice
03 Mar 2016
1#include<stdio.h>
2int main(int argc,char *argv[]){
3	FILE *in=fopen(*++argv,"r");
4	char c;
5	while((c=fgetc(in))!=EOF)
6		putchar(c);
7	fclose(in);
8	return 0;
9}