vb.net2010.读txt文件代码
展开全部
写文件
Dim sw As New System.IO.StreamWriter(Application.StartupPath & "/score.txt", False, System.Text.Encoding.Default)
For i = 0 To 2
sw.WriteLine(pers(i).name & Space(4) & pers(i).score)
sw.Flush()
Next
sw.Close()
sw = Nothing
Dim sw As New System.IO.StreamWriter(Application.StartupPath & "/score.txt", False, System.Text.Encoding.Default)
For i = 0 To 2
sw.WriteLine(pers(i).name & Space(4) & pers(i).score)
sw.Flush()
Next
sw.Close()
sw = Nothing
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询