'读取文件的内容 , 建立为另一个文件, 发现有指定的信息就不写入
Open "E:\新建文件夹 (2)\stu.txt" For Input As #1
Open "E:\新建文件夹 (2)\stu_new.txt" For Output As #2
Do Until EOF(1)
Line Input #1, temp
If temp = "指定的信息" Then temp = vbNullString
Print #2, temp
Loop
Close #2: Close #1
Kill "E:\新建文件夹 (2)\stu.txt" '删除原文件
'重命名为源文件
Name "E:\新建文件夹 (2)\stu_new.txt" As "E:\新建文件夹 (2)\stu.txt"