Write an If clause that determines whether the sequential access file named contacts.txt exists. If the file exists, open the file. If the file does not exist, display the message "File not found" in a Label control called lblMessage.
What will be an ideal response?
If IO.File.Exists("contacts.txt") Then
inFile = IO.File.OpenText("contacts.txt")
Else
lblMessage.Text = "File not found"
End If
Computer Science & Information Technology
You might also like to view...
Collections method sort that accepts a List as an argument. It sorts the List elements, which must implement the __________ interface.
a. Comparable. b. Comparator. c. Compare. d. Ordering.
Computer Science & Information Technology
A footnote is automatically formatted in ____ point font.
A. 9 B. 10 C. 12 D. 14
Computer Science & Information Technology
The acronym BLOB stands for Bidirectional Large Objects.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology
JavaFX is designed to replace ____ as the GUI library for Java SE and is included with the standard JDK and JRE.
A. Swing B. GUI C. Animation D. FXML
Computer Science & Information Technology