Write a statement that checks to see if a file called"welcome.txt"exists, then, if it does, reads the entire file at once into a procedure-level StreamReader variable calledinFileand closes the file when it's done.
What will be an ideal response?
Dim inFile As IO.StreamReaderIf IO.File.Exists("welcome.txt") Then inFile = IO.File.OpenText("welcome.txt") inFile.close()End If
Computer Science & Information Technology
You might also like to view...
The document title is normally placed into the footer of the document
Indicate whether the statement is true or false
Computer Science & Information Technology
Which of the following is NOT an Access file extension?
A) ACCDB B) ACCDE C) ACCDT D) ACCTM
Computer Science & Information Technology