Advertisement
Guest User

.csv

a guest
Jun 26th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <string>
  4.  
  5.  
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10. ifstream archivo;
  11. archivo.open("datos.txt");
  12.  
  13. while (archivo.good())
  14. {
  15. string line;
  16. getline(archivo, line,',');
  17.  
  18. cout << line <<endl;
  19. }
  20.  
  21. system("pause");
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement