Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3. #include <string>
  4. #include <fstream>
  5. #include <cstdlib>
  6. #include <vector>
  7. using namespace std;
  8.  
  9.  
  10.  
  11. int main() {
  12.  
  13. ifstream myReadFile;
  14. myReadFile.open("input.txt");
  15. string s;
  16.  
  17. if (myReadFile.is_open()) {
  18. while (!myReadFile.eof())
  19. {
  20. myReadFile >> s;
  21. cout << s;
  22. }
  23. }
  24.  
  25. std::string delimiter = "";
  26. std::string token = s.substr(0, s.find(delimiter));
  27.  
  28.  
  29. cout << endl;
  30. myReadFile.close();
  31. return 0;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement