Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"How do you guarantee that the file is ascii."

I use an HTML reader set to 7-bit ASCII. If necessary I replace or eliminate non-ASCII characters I do not want. I often use flex or tr for this task.

In the situation described in the comment, I'm not sharing these files with anyone else. I'm reading these files myself. As such, other users' preferences are irrelevant.

The submission is about ASCII for "network exchange". But the comment replied to here is not necessarily about ASCII for network exchange. It's about a method used by yours truly for reading large ASCII files.



s/characters/bytes/




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

Search: