Is is possible to read all these integers and store them in one vector?
Sure, but what do you plan to do with them when you've got them?
1 2 3 4 5 6 7 8 9 10 11 12 13
#include <iostream>
#include <fstream>
#include <vector>
usingnamespace std;
int main()
{
vector<int> V;
ifstream in( "data.txt" );
for ( int x; in >> x; ) V.push_back( x ); // read all integers in file into V
for ( int e : V ) cout << e << ' ';
}