佔位,。。。。
讀文件就用上面的兄弟的函數了
我講怎麼分割
首先分割成
name="&L1"
value="www.163.com"
file=......(讀出文件)
word=split(file,chr(13)+chr(10))'回車
'word(0)="&L1=http://www..com/"
'word(1)="&L1=http://www.163.com/"
remdim testword(ubound(word),1)
for i=0 to ubound(word)
tword=split(word(i),"=")
testword(i,0)=tword(0)
testword(i,1)=tword(1)
next
for i=0 to ubound(testword,1)
if testword(i,0)=name then
testword(i,1)=value
end if
next
for i=0 to ubound(testword,1)
file=testword(i,0)+"="+testword(i,1)+chr(13)+chr(10)
next
'把file寫回去就OK了