Correct syntax would be something like:
Code:
    while(! getdata.eof()) {
        string s;
        getline(getdata, s, ',');
        v_input.push_back(s);
    }