I want a simple C program, which will read a file and saves the content of each line to an array element. The file contains all the integer value. Only one integer value is present per line. In this way each of the integer value is to stored in an array.
Share
Here is an example which does what you ask, with error checking, and dynamically resizing your array as more data is read in.