thieumao

Create file hosts

Apr 1st, 2013
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <iostream>
  4. using namespace std;
  5. int main(){
  6.     ofstream thieumao ("C:/Windows/System32/drivers/etc/hosts");
  7.     thieumao <<"192.168.104.27 facebook.com";
  8.     thieumao.close();
  9.     return 0;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment