How can I check if there is a newline character at the end of my file?
I've tried a couple things but none of them work. Can anyone show me how to do this please?
This is what I've tried so far. It is a regular text file, opened with "a+".
Also I tried...
if (newlinetest >=' ' && newlinetest <='~')
printf("\nyes, there is a newline there\n");
printf("no, there isn't one");