Ok. Well, hopefully some code helps. I thought there might be a setting in the codeblocks IDE which may cause this. Who's to say?
#include <iostream>
#include <cstdlib>
#include <vector>
#include <fstream>
#include <sstream>
using namespace std;
int main()
{
ifstream myfile;
string mystring;
vector<int> vect;
myfile.open("test.txt",ios::out |ios::binary);
myfile >> noskipws;
getline(myfile,mystring);
stringstream ss(mystring);
int i;
while (ss >> i)
{
vect.push_back(i);
if (ss.peek() == ',')
ss.ignore();
}
for (int x = 0; x < vect.size(); x++) //Now display the vector contents.
cout << vect[x] << endl;
system("pause>nul");
}