Question:You are writing a method that accepts a string parameter named message.
Your method must break the message parameter into individual lines of text and pass each line
to a second
method named Process.
Which code segment should you use? - (VB.Net) 

A Dim reader As New StringReader(message)
Process(reader.ReadToEnd())
reader.Close() 

B Dim reader As New StringReader(message)
While reader.Peek() <> -1
Dim line As String = reader.Read().ToString()
Process(line)
End While
reader.Close() 

C Dim reader As New StringReader(message)
Process(reader.ToString())
reader.Close() 

D Dim reader As New StringReader(message)
While reader.Peek() <> -1
Process(reader.ReadLine())
End While
reader.Close() 

+ Answer
+ Report
Total Preview: 930

Copyright © 2024. Powered by Intellect Software Ltd