ASCII ART Idea

Hey Just for fun I tried to eplore ASCII art .I realised there could be many creative ways but it’s tiresome to cout each line taking care of \\ and other stuff .Better way is to cout asci art is by reading a .txt file through fstream c++ library .
I’ll drop a code I used

 FText line;
    std::ifstream file ("art.txt");
    if (file.is_open()) {
        while ( getline (file,line) )
        {
            std::cout << line << '\n';
        }
        file.close();
    } else {
        std::cout << "Sorry no ascii art file";
    }

This image is just an ascii art I found somewhere in cyber space . I liked it ,also Ill credit the creator of this ascii art Michael C. Ling .

1 Like

Privacy & Terms