/stat
Я использую std::ifstream и std:: getline() для чтения файлов.
Вот мой текущий код:
Код: Выделить всё
std::ifstream statFile("/proc/" + pid + "/stat");
if (!statFile.is_open())
{
std::cerr
Подробнее здесь: [url]https://stackoverflow.com/questions/79383693/faster-file-reading-in-c[/url]
Мобильная версия