Hi All,
I'm a C++ beginner, and I face the following problem:
There's a .txt file that has some number written successively in the 15th line of the file. Each number (that could be a one or 2 digits number) is separated by a space from the preceding and succeeding numbers.
What I want to do is to read each of those numbers (their total number is 333) and store each of them( in its specific order) in an array of integers. i.e. I need to have an array declared as int [333], and each of its entries is one of the 333 numbers in the same order they appear in the text file.
Suppose that the file is called input.txt and that its path is c:\input.txt.
Could you please provide me with a simple code for that?
Thanks a lot.
Aly