Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <string>
- int main() {
- std::fstream fout;
- fout.open("E:\work\test.txt", std::ios::out);
- std::string s;
- std::getline(fout, s);
- std::cout << s;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement