Adding an entry to hostfile..

Hi guys,
   I want to add/delete an entry from the HOSTS file
under "C:\windows\"...
  the entry is a typical
 XXX.XXX.XXX.XXX   www.XXX.com

How should I go about doiung this?
Can I open/edit it just like a usual text file
using CFile?

Thanks...

David Chong
LVL 1
HahoAsked:
Who is Participating?
 
chensuConnect With a Mentor Commented:
Yes, that is a plain text file. Use CStdioFile to access it.
0
 
HahoAuthor Commented:
thanks..
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.