Hacker News new | past | comments | ask | show | jobs | submit login

The only difference is you have to check the last character in the file to determine if it is a newline. Maybe the last 4 characters if it is Unicode.



Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: