Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- #include <string>
- #include <fstream>
- #include <cstdlib>
- #include <vector>
- using namespace std;
- int main() {
- ifstream myReadFile;
- myReadFile.open("input.txt");
- string s;
- if (myReadFile.is_open()) {
- while (!myReadFile.eof())
- {
- myReadFile >> s;
- cout << s;
- }
- }
- std::string delimiter = "";
- std::string token = s.substr(0, s.find(delimiter));
- cout << endl;
- myReadFile.close();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement