VB 一个文本框text1,一个按钮command1,一个文件D:\1.txt
2个回答
展开全部
Private Sub Command1_Click()
Open "d:\1.txt" For Input As #1
T = StrConv(InputB(LOF(1), 1), vbUnicode)
Close #1
k = Split(T, vbCrLf)
Open "d:\1.txt" For Output As #1
For i = 0 To UBound(k)
If i <> Val(Text1) - 1 Then Print #1, k(i)
Next
Close #1
End Sub
‘请参考。
Open "d:\1.txt" For Input As #1
T = StrConv(InputB(LOF(1), 1), vbUnicode)
Close #1
k = Split(T, vbCrLf)
Open "d:\1.txt" For Output As #1
For i = 0 To UBound(k)
If i <> Val(Text1) - 1 Then Print #1, k(i)
Next
Close #1
End Sub
‘请参考。
追问
可以告诉我qq 吗,求拜师
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询