Answers for "streamreader vb.net"

VBA
4

c# streamreader

// The StreamReader are using the Namespaces: System and system.IO

using (StreamReader sr = new StreamReader("TestFile.txt"))
{
  string line;
  while ((line = sr.ReadLine()) != null)
  {
    Console.WriteLine(line);
  }
}
Posted by: Guest on March-04-2021
0

vb streamreader

Dim fileReader As System.IO.StreamReader
fileReader =
My.Computer.FileSystem.OpenTextFileReader("C:\testfile.txt")
Dim stringReader As String
stringReader = fileReader.ReadLine()
MsgBox("The first line of the file is " & stringReader)
Posted by: Guest on October-03-2020

Code answers related to "VBA"

Browse Popular Code Answers by Language