ReadLine (String) Reads a string from the formatted read buffer. The read stops when an EOL character is reached. String ReadLine(); Int32 ReadLine(StringBuilder data); Name Description Type A object created by the calling program data StringBuilder StringBuilder to hold the string to be read from the formatted read buffer. This method appends the output string to data. RETURN Type Description The string actually read from the formatted read buffer. String The number of characters actually appended to the parameter. Int32 StringBuilder The method implementations exhibit exactly the same behavior (but not necessarily ReadLine implemented exactly as shown) as a corresponding call to as shown in the following table. Scanf, ReadLine Method Equivalent Scanf Call String ReadLine(); Scanf(“%T”, out result); (return result) Int32 ReadLine(StringBuilder data); Scanf(“%T”, out data); (return data.Length)
ReadLine (String) Reads a string from the formatted read buffer. The read stops when an EOL character is reached. String ReadLine(); Int32 ReadLine(StringBuilder data); Name Description Type data A StringBuilder object created by the calling program to hold the string to be read from the formatted read buffer. This method appends the output string to data. StringBuilder RETURN Type Description String The string actually read from the formatted read buffer. Int32 The number of characters actually appended to the StringBuilder parameter. The ReadLine method implementations exhibit exactly the same behavior (but not necessarily implemented exactly as shown) as a corresponding call to Scanf, as shown in the following table. ReadLine Method Equivalent Scanf Call String ReadLine(); Scanf(“%T”, out result); (return result) Int32 ReadLine(StringBuilder data); Scanf(“%T”, out data); (return data.Length)
vpp436_2016-06-07.docx