cowfetch/cowfetch.cpp
COW_ILLUMINATI 4159e91840 Code
2024-05-28 16:16:53 -04:00

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;
}