I am working on a program, one of whose tasks is to edit the file C:\Windows\System32\drivers\etc\hosts . Will I be able to open it with the help of the std::ofstream , if the system("net user администратор /active:yes") command is executed before this? Or do you need to do something differently?

  • 2
    And try it yourself? - KoVadim

0