J
JOJO813
Unregistered / Unconfirmed
GUEST, unregistred user!
问题是这样的,我有个txt文件,打开后是这样:
#========================
# 接口配置
#========================
pushd interface
reset all
popd
# 接口配置结束
# ----------------------------------
# 接口 IP 配置
# ----------------------------------
pushd interface ip
# "本地连接" 的接口 IP 配置
set address name = "本地连接" source = static addr = 193.168.105.16 mask = 255.255.255.0
set address name = "本地连接" gateway = 193.168.105.1 gwmetric = 1
set dns name = "本地连接" source = static addr = 202.96.128.68
add dns name = "本地连接" addr = 172.16.100.180
set wins name = "本地连接" source = static addr = none
popd
# 接口 IP 配置结束
我要把里面的ip地址即“193.168.105.16”,网关:“193.168.105.1”,以及dns:“202.96.128.68”这三项数据读取到我的程序里的三个edit里面,如果我修改了这三个edit的数字,按下确定按钮txt文件里的数据也相对改变,请问各未大侠神仙高人,该如何实现,对了,txt文件和我的程序在同一路径里,各位帮帮小女子吧,300分呀!如果嫌少可再加。
#========================
# 接口配置
#========================
pushd interface
reset all
popd
# 接口配置结束
# ----------------------------------
# 接口 IP 配置
# ----------------------------------
pushd interface ip
# "本地连接" 的接口 IP 配置
set address name = "本地连接" source = static addr = 193.168.105.16 mask = 255.255.255.0
set address name = "本地连接" gateway = 193.168.105.1 gwmetric = 1
set dns name = "本地连接" source = static addr = 202.96.128.68
add dns name = "本地连接" addr = 172.16.100.180
set wins name = "本地连接" source = static addr = none
popd
# 接口 IP 配置结束
我要把里面的ip地址即“193.168.105.16”,网关:“193.168.105.1”,以及dns:“202.96.128.68”这三项数据读取到我的程序里的三个edit里面,如果我修改了这三个edit的数字,按下确定按钮txt文件里的数据也相对改变,请问各未大侠神仙高人,该如何实现,对了,txt文件和我的程序在同一路径里,各位帮帮小女子吧,300分呀!如果嫌少可再加。