It seems that there is basically no difference between the Console.Write() &
String.Format() , other than the output being sent to the console output stream
instead of a string. Is this accurate?
String formatter = "(whatever) ";
Console.Write(f ormatter,object 1,object2, ... );
String formattedString = String.Format(f ormatter,object 1,object2, ... );
// Basically, formattedString will be exactly the same as what was put to the
console
Also, is there any difference between Write() & WriteLine(), other than a new
line?
String thankU = "Thanks";
Console.WriteLi ne(thankU);
String.Format() , other than the output being sent to the console output stream
instead of a string. Is this accurate?
String formatter = "(whatever) ";
Console.Write(f ormatter,object 1,object2, ... );
String formattedString = String.Format(f ormatter,object 1,object2, ... );
// Basically, formattedString will be exactly the same as what was put to the
console
Also, is there any difference between Write() & WriteLine(), other than a new
line?
String thankU = "Thanks";
Console.WriteLi ne(thankU);
Comment