Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "stdlib.h"
- #include <fstream>
- #include <string>
- #define CSV_FILE "EnablingTable.csv"
- //#define CSV_FILE "test.txt"
- using namespace std;
- int main()
- {
- string line;
- ifstream csvFile;
- csvFile.open(CSV_FILE);
- if (csvFile.is_open())
- {
- getline(csvFile, line, ',');
- cout << line;
- cout << "\n";
- csvFile.close();//close the file
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement