The string will have newlines in the Windows CR/LF format.
It does not throw a MathLinkException. Instead it returns null if there was an error. You can use the LastError property to see the MathLinkException that was generated.EvaluateToInputForm(Expr, Int32) | Sends the code to evaluate as an Expr. |
EvaluateToInputForm(String, Int32) | Sends the code to evaluate as a string. |