Hi,all
What i am trying to do now is to show the content of the dnsredir.ini file on the forms and able to edit it.
The dnsredir.ini file file looks like this
;Configuration INI file for DNS Redirector v6.4.7
Logging=Normal
ListenOnIP=172.23.128.33
DNSServerIP=172.122.16.98
SimpleDNS=
RedirectIP=
AuthKeywordsFile=
AlwaysKeywordsFile=always.txt
AuthClientsFile=
BlockedIP=172.26.128.33
BlockedKeywordsFile=blocked.txt
AllowedKeywordsFile=allowed.txt
BypassBlockFile=bypassblock.txt
RestrictIP=
RestrictStart=
RestrictEnd=
BypassRestrictFile=
ActionNumber=0
JoinType=Detect
JoinAction=
LeaveAction=
ClientTimeout=20
MinToTray=False
CloseToTray=False
;Save this INI then close and restart dnsredir.exe so changes become active
I need to be able to read the file and edit it line by line.. for example
ListenOnIP=172.26.128.33 is on line 5.
I need to be able to edit 172.26.128.33 on line 5
and when i click save it will be save on the same line in the .INI file.
I think i need to use array or something but I am very new to Vb. I seriously need help! Please Help with the coding. Thanks!!!!


Reply With Quote
