Use print function instead of statement.
Handle difference in line ending chars.