Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<stdio.h>
- #include<math.h>
- #include<fstream> // Filestream
- #include<string>
- #include<sstream>
- #include<cstring>
- #include<vector>
- #include<iterator>
- using namespace std; // Standard Namespace
- int main()
- {
- //ifstream testdatei; // Input Filestream name testdatei
- ifstream datei("C:\\Users\\mail\\Desktop\\Test.csv");
- string zeile;
- while(getline(datei, zeile))
- {
- for (int i = 0; i < zeile.size(); i++)
- {
- if (zeile[i] == ';')
- {
- zeile[i] == ' ';
- }
- }
- stringstream zeilenpuffer(zeile);
- int a, b;
- zeilenpuffer >> a >> b;
- cout << a << " " << b << endl;
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement