File building with input from cloumn

I have a file with four column (int data), rows 100. I want to build some files with the value of each rows in column 1 like, File_row1, file_row2 upto file_row100.
How to solve the problem??? I know its easy but getting puzzled!!!

You started anything yet...post it.
Btw are you using a 2D array?

Aceix.
i could not understand how to do it!! but i was doing it like...

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <iostream>
#include <fstream>

using namespace std;

int main()
{

ifstream inputFile;
char c[12];
float col2, col3;

inputFile.open("input_file.txt");

            while(!inputFile.eof())
            {
                inputFile>>col>>col2>>col3;
            }

 char column=c[12];

    for(int i=0;i!=inputFile.eof();i++)
    {
        column=c[i];
		cout<<"file_"<<column<<endl;
        }
    


system("pause");
return 0;
 }
Topic archived. No new replies allowed.