VB如何在文本寻找字符串并进行替换

2024-12-21 23:49:19
推荐回答(2个)
回答1:

Open "d:\12.txt" For Input As #1 ‘读取
s = Input(LOF(1), 1)
Close #1
s=replace(s,"a=110117","a=227504") '替换
Open "d:\12.txt" For Ouput As #1 '写入
print #1,s
Close #1

回答2:

楼主五级用户,1335个金币,太抠门了。