zoukankan      html  css  js  c++  java
  • 在vb.net使用System.IO读取文本文件

    Imports System
    Imports System.IO
    Imports System.Collections

    Module Module1

        Sub Main()
            Dim objReader As New StreamReader("c:\test.txt")
            Dim sLine As String = ""
            Dim arrText As New ArrayList()

            Do
                sLine = objReader.ReadLine()
                If Not sLine Is Nothing Then
                    arrText.Add(sLine)
                End If
            Loop Until sLine Is Nothing
            objReader.Close()

            For Each sLine In arrText
                Console.WriteLine(sLine)
            Next
            Console.ReadLine()
        End Sub

    End Module
  • 相关阅读:
    自动构建部署
    EF 性能调优
    断点续传
    gis 相关资料
    easyui 特殊操作
    KJ面试
    前端面试题汇总
    es6之扩展运算符 三个点(...)
    vue.js开发环境搭建
    gulp 环境搭建
  • 原文地址:https://www.cnblogs.com/xinjie/p/1568279.html
Copyright © 2011-2022 走看看