where do I intialize a file so it can be viewed by more that one function in the same program?
I tried putting
above the main, but I get an illegal intiialization error, and if I put it twice, inside the two functions, it doesnt work properly (reading the data).Code:FILE *in=fopen("C:\\cs10e\\input5.txt","r");