23 lines
519 B
C++
23 lines
519 B
C++
#include <iostream>
|
|
#include <fstream>
|
|
#include <chrono>
|
|
#include <thread>
|
|
|
|
int main() {
|
|
std::ifstream file("/etc/cowfetch/logo.ascii");
|
|
if (!file.is_open()) {
|
|
std::cerr << "Error opening file" << std::endl;
|
|
return 1;
|
|
}
|
|
|
|
char c;
|
|
while (file.get(c)) {
|
|
std::cout << c;
|
|
std::cout.flush(); // Ensure the output is displayed immediately
|
|
std::this_thread::sleep_for(std::chrono::milliseconds((1))); // Adjust the speed here
|
|
}
|
|
|
|
file.close();
|
|
return 0;
|
|
}
|