Assume the file Alphabet.txt contains 26 records, the lowercase letters of the alphabet in ascending order. What happens when the following code is executed?
```
Dim letter As String
Dim sr As IO.StreamReader = IO.File.OpenText"Alphabet.txt"
Do While Not sr.EndOfStream
letter = sr.ReadLine
Dim sw As IO.StreamWriter = IO.File.CreateText(letter.ToUpper & "txt"
sw.WriteLine(letter.ToUpper & "xt"
sw.Close()
Loop
sr.Close()
```
(A) A"too many files open"error is produced.
(B) Twenty-six files are created and named with one of the uppercase letters of the alphabet
and each containing only its own file name.
(C) A file called z is created containing all of the letters of the alphabet in lowercase.
(D) An "nvalid file name"error is produced.
(B) Twenty-six files are created and named with one of the uppercase letters of the alphabet
and each containing only its own file name.
You might also like to view...
With HTML, browsers usually accept documents that violate HTML ____________________ as long as the violation is not too severe.
Fill in the blank(s) with the appropriate word(s).
You can use the _________ function to move the file pointer for output.
A. stream.tellp(); B. stream.seekp(length); C. stream.tellg(); D. stream.seekg(length);
An advantage of modularization is that the main module is easier to understand yet still gives the "big picture" of what's happening.
Answer the following statement true (T) or false (F)
If you want to place Confidential behind the data in a worksheet, you use a custom ________
Fill in the blank(s) with correct word