This commit is contained in:
Vladimir N. Korotenko
2025-11-10 12:30:48 +03:00
commit 57b6611085
49 changed files with 27005 additions and 0 deletions

23
dm-cli/PrintFile.cpp Normal file
View File

@@ -0,0 +1,23 @@
#include "PrintFile.hpp"
#include <fstream>
#include <string>
#include <iostream>
using namespace std;
void PrintFile(const char *fileName)
{
ifstream inputFile(fileName);
if (inputFile.is_open())
{
string line;
while (getline(inputFile, line))
{
cout << line << endl;
}
inputFile.close();
}
else
{
cerr << "Error: Unable to open file " << fileName << endl;
}
}