Which of the following statements is used when you want to add data to the end of an existing text file?
A) Dim sr As IO.StreamReader = IO.File.OpenText("Data.txt")
B) Dim sr As IO.StreamReader = IO.File.AddText("Data.txt")
C) Dim sw As IO.StreamWriter = IO.File.CreateText("Data.txt")
D) Dim sw As IO.StreamReader = IO.File.AppendText("Data.txt")
Correct Answer:
Verified
Q1: The following statement could be used to
Q6: What property is set to False in
Q7: Select the example statement below that would
Q8: Which of the following methods is used
Q9: The following statement causes the Open dialog
Q10: Each record of the file UN.txt contains
Q13: A statement of the form IO.File.WriteAllLines("fileName.txt", numArray)
Q14: Opening a file for input means that
A)
Q15: When an existing file is opened for
Q16: In order to use the OpenFileDialog control,
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents