As far numbers are separated by spaces and are always granted to be 2 per line,there is no need to read lines, just read two integers ad push them into the vectors. And repeat until it goes.
#include <vector>
#include <fstream>
#include <iostream>
int main()
{
using namespace std;
vector<int> v1, v2;
ifstream file("example.txt");
while(!!file)
{
int a, b;
file >> a >> b;
v1.push_back(a);
v2.push_back(b);
}
cout << "v1 = (";
for(vector<int> iterator i=v1.begin(), end=v1.end(); i!=end; ++i)
cout << *i << ' ';
cout ')' << endl <<"v2 = (";
for(vector<int> iterator i=v2.begin(), end=v2.end(); i!=end; ++i)
cout << *i << ' ';
cout ')' << endl;
return 0;
}