Reading integers from file and store them in array C++ [closed]
I agree with @ravi but I some notes for you: If you don’t know how many integers are in the file and the file contains only integers, you can do this: You need to #include<vector> for this. it would be better if you read how many integers are in the file and then use loop to read them: Note: I … Read more