分隔符来读取文本、

2014-12-09 0 166
分隔符来读取文本、
'读取文件
        If My.Computer.FileSystem.FileExists(shuju) Then
            Dim neirong As Microsoft.VisualBasic.FileIO.TextFieldParser
            neirong = My.Computer.FileSystem.OpenTextFieldParser(shuju)
            neirong.SetDelimiters(",")
            Dim textFields As String() = neirong.ReadFields()
            For Each currentField As String In textFields
                ListBox1.Items.Add(currentField)
            Next
            neirong.Close()
        Else
            MsgBox("文件不存在")
        End If

遇见资源网 ASP/Basic 分隔符来读取文本、 http://www.ox520.com/13375.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务