In C programming language: Write a simple C program - consecutive.c - that will read from a .txt file - foo.txt - which has one integer per line (unknown number of lines, up to tens of thousands of lines).
The C program will compare each integer with the integer on the next line and check to see if it is exactly one greater than it. If the next line is not eactly 1 greater, then that number will be printed to console.
This will check every line of foo.txt
Example: __________________________________________________ "foo.txt" 3 4 5 6 6 7 8 . . . 145 146 146 147