
VB 如何删除记事本前三行内容
在VB中读入本地电脑一个记事本,然后把前面三行的内容删除掉,再输出去,前三行内容不为空的。但是是随机不同的。...
在VB中读入本地电脑一个记事本,然后把前面三行的内容删除掉,再输出去,前三行内容不为空的。但是是随机不同的。
展开
2个回答
展开全部
dim s as string, i as long
open "1.txt" for input as #1 '读入文件1.txt
open "2.txt" for output as #2 '输出文件2.txt
do until eof(1)
line input #1,s
if i>2 then print #2,s
i=i+1
loop
close #2
close #1
open "1.txt" for input as #1 '读入文件1.txt
open "2.txt" for output as #2 '输出文件2.txt
do until eof(1)
line input #1,s
if i>2 then print #2,s
i=i+1
loop
close #2
close #1
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询