dim fs as new system.io.filestream("f:\计算\njh\jnz.txt", io.filemode.open,
io.fileaccess.read)
dim fw as new system.io.streamwriter("f:\计算\njh\jnz" & cstr(i) & ".txt")
dim sr as new system.io.streamreader(fs)
dim itemp as string()
dim strtemp as string
do
strtemp = sr.readline '这里不为空,那下面有就实例,如果为null,就没有实例化字符串数组
itemp = strtemp.split(chr(9)) '这里你给dim itemp as string() 赋值strtemp.split(chr(9)) 。
if itemp(2) = cstr(i) then
fw.writeline(strtemp)
end if
loop while sr.peek <> -1