Answers for "c++ writing to a file repeating a charatcter"

C++
0

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;
}
Posted by: Guest on July-03-2020

Browse Popular Code Answers by Language