Skip to content

Commit

Permalink
Update reader.h
Browse files Browse the repository at this point in the history
  • Loading branch information
THECRAZEDPOTATTO authored Oct 10, 2022
1 parent 426781f commit 62272bf
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,19 @@
#include <thread>
#include <cstdlib>
#include <string>
//string mypip;
//string myos;
//string mycmd;
//string mywebsite;
//string mycore;
//string myadmin;
//string myconsole;


#include <iostream>
#include <fstream>
#include <cstdlib>
#include <string>
#include <iterator>
using namespace std;
std::string execute(string cmd,string filename)
{
std::string file_name = filename;
std::system((cmd + " > " + file_name).c_str());
std::ifstream file(file_name);
return { std::istreambuf_iterator<char>(file), std::istreambuf_iterator<char>() };
}


/*
Expand Down

0 comments on commit 62272bf

Please sign in to comment.