For any purpose you might want to edit your Windows system file but sometime even you are administrator you always find any error to save it.
For example when you try to edit hosts file in C://windows/system32/drivers/etc folder and when you want to save it always point to save it as txt file and of course it become another file and you don’t make any change for it.
So how to edit it without find that error? Actually there is two way and here are them
First way (recommended): Copy a file you want to edit to another location better to your desktop or to another non system drive. Edit copied file and save it and surely you won’t find any problem after that copy and paste it back to original folder and and it will just ask administrator permission to copy there and the rest without find any error.
Second way: Just run your editor program as administrator. Example if you use notepad just right click on notepad and click run as Administrator and if you enable UAC it will ask your permission and click Yes.From notepad just open a system file that you want to edit, make editing next save and surely you won’t find any error.
Enjoy it!