Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ stream string into fiel

#include <fstream>
#include <string>
#include <iostream>

int main()
{
    std::string input;
    std::cin >> input;
    std::ofstream out("output.txt");
    out << input;
    out.close();
    return 0;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #stream #string #fiel
ADD COMMENT
Topic
Name
5+6 =