#include <iostream>
#include <fstream>
#include <string>
usingnamespace std;
int main()
{
ifstream inputFile;
int one;
string name;
int two;
double number;
inputFile.open("thefile.dat");
//Loop That I am lost on
while (inputFile >> )
{
//And to cout the multiple strings that they were read in
cout << <<endl;
}
inputFile.close();
Since you have one item per line and lines grouped into fours, you're going to need to do four cins and four couts inside your loop.
1 2 3 4 5 6 7 8
while (inputfile >> one)
{ // read the remaining three lines
inputfile >> name;
inputfile >> two;
inputfile >> number;
// Now write out the values
cout << one << ',' << name << ',' << two << ',' << number << endl;
}