Answer the following statements true (T) or false (F)

1. When a text file is created in Visual Basic using a StreamWriter, the extension .txt is
automatically added to the file name if no other extension is specified.
2. In the following statement, sw is the name of a variable.
``` Dim sw As IO.StreamWriter = _
IO.File.CreateText("C:\TEXT FILES\INCOME Data.txt")
3. If an existing text file is opened for output, the computer will append any new data to the
end of this existing file.
4. If the value of IO.File.Exists(filespec) is True, then the specified file exists.
5. An individual item of a text file cannot be changed or deleted directly.

```

1. F
2. T
3. F
4. T
5. T

Computer Science & Information Technology

You might also like to view...

Which codec is used to compress audio files, allowing them to maintain excellent quality while being reasonably small?

a. MP3 b. MPEG c. AVI

Computer Science & Information Technology

The ____________________ exception type occurs when a variable with no value is passed to a procedure.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology