... But, I've made other programs like this and it works. I thought it might be because I am evaluating directly what fgetc returns and assign its value to ch seperately.
I put everything between parenthesis so I guess that what is being compared is what the function returns directly, not ch... or am I wrong?Code:(ch = fgetc(read_file)) != EOF
And also, that means that I should change the array to an int array, or would it convert automatically from int to char? ... Or I could add a typecast