asp删除txt文件|asp来修改txt文件的代码

❶ asp来修改txt文件的代码

占位,。。。。读文件就用上面的兄弟的函数了我讲怎么分割首先分割成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)nextfor i=0 to ubound(testword,1) if testword(i,0)=name then testword(i,1)=value end ifnextfor i=0 to ubound(testword,1) file=testword(i,0)+"="+testword(i,1)+chr(13)+chr(10)next'把file写回去就OK了


赞 (0)