User-1174608757 posted
Hi jsshivalik,
By default,the file in wwwroot folder couldn't be edited directly without administrator permission. Luckily , you could set the permission of wwwroot folder then you could edited the file.
You could follow the steps as below ,I hope it could help you.
1.Open File Explorer and go to C:/inetpub/
2.Right click on wwwroot and click on "Properties"
3.Go to the Security tab and click "Edit..." to edit permissions
4.Find and select the Users(which represent your identity)
5.Select the "Allow" checkbox for Full control.
you could see as below:

Best Regards
Wei Zhang