please help me with this files program
Please give me code for the following :
The program should take one file as input which contains integers and should take it into a int variable. lets say, print that variable on the screen.
I wrote the following code but its showing errors..
The programming is functioning when I replace these int types with char type but I need integers not characters.
# include <stdio.h>
int main (int argc, int argv )
FILE *file_num ;
int num ;
file_num = fopen (argv,"r");
printf ("File not found\n");