I have a kisiler.txt
file like this.
102,Mustafa,E,2,54,0,0,1
103,Seher,K,2,65,0,1,0
104,Ali,E,1,88,0,1,0
105,Ahmet,E,3,12,1,0,0
106,Osman,E,5,2,0,0,0
107,Remziye,K,3,63,0,0,1
108,Ayse,K,1,10,0,0,0
I want to print data without commas from txt to two dimensional matrix. Like this
101 Tarkan E 1 22 1 1 0
102 Mustafa E 2 54 0 0 1
........................
........................
How can i do this in c++ ?
#include <iostream>
#include <fstream>
#include <cstring>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
void ReadFileFunc(){
ifstream readFileFunc("kisiler.txt");
// ...
ReadFileFunc.close();
}
int main(int argc, char** argv) {
ReadFileFunc();
return 0;
}