Sets the line acconding to the params.
eOk if the operation completed successfully, or an appropriate error code otherwise.