• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 204
  • Last Modified:

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
0
Haho
Asked:
Haho
1 Solution
 
chensuCommented:
Yes, that is a plain text file. Use CStdioFile to access it.
0
 
HahoAuthor Commented:
thanks..
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now