Question: visual basic Assume the file Alphabet.txt contains 2 6 records, the lowercase letters of the alphabet in ascending order. What is stored in Target.txt after

visual basic Assume the file Alphabet.txt contains 26 records, the lowercase letters of the alphabet in ascending order. What is stored in Target.txt after the following code is executed?
Dim letter As String
Dim sr As IO.StreamReader = IO.File.OpenText("Alphabet.txt")
Do While Not sr.EndOfStream
Dim sw As IO.StreamWriter = IO.File.CreateText("Target.txt")
letter = sr.ReadLine
sw.WriteLine(letter)
sw.Close()
Loop
sr.Close()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!