Advertisement
Guest User

Untitled

a guest
Mar 30th, 2020
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <string>
  4.  
  5. int main() {
  6. std::fstream fout;
  7. fout.open("E:\work\test.txt", std::ios::out);
  8. std::string s;
  9. std::getline(fout, s);
  10. std::cout << s;
  11. return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement