我在这页使用这段代码,逐行读取数据。现在我怎么可以逐行编辑文本文件? (VB6) Reading text files line by line looking for specific words If InStr(1, lines(i), "sample text", vbTextCompare) Then
lines (i)= "new text"
我用这个代码,但没有任何改变
我有一个文本文件foo.txt的,看起来像写回同一个文件: I dont care!
pattern and stuff
this line : to_edit
this line : no_edit
some other lines
this line : to_edit
pattern and stuff
another line : to_edit
another line