To edit files as root, open a terminal and use su to get root access, then launch your favorite editor to edit the file.
Password: <type the password, you won't see anything>
root@linux# nano /some/file
A few editors:
My favorite is emacs, many people like vi, the simplest are nano and pico.