int numValues = 4;
string data; // Let's say this has your ascii float data
istringstream iss(data);
vector<float> values(numValues, 0.0f);
for (int i = 0; i < numValues; i++)
iss >> values[i];
If you don’t like the C++ I could show you the C-way of doing it, but it might be the same as what you’re doing now. Can you post your code?