Answers for "print content of a file in c++"

0

print contents of cpp file

#include <iostream>
#include <fstream>

int main()
{
    std::ifstream f("file.txt");

    if (f.is_open())
        std::cout << f.rdbuf();
}
Posted by: Guest on October-21-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language