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

No you don’t. It’s a holdover from when files were on tapes. The logic is all inverted too. Record separators were at the beginning of a record. Group and unit separators could then be nested. You really needed a spec for whatever document you were trying to makt


It doesn't matter if the sentinel byte is after or before each record.

Having it before is nice for syncing byte streams.


It matters when you trying to roundtrip the data through a text editor because existing tools balk at a 300MB file with a single line.


You need a "spec" just the same for a CSV: does it have headers, is there a consistent column ordering, etc. Control characters work the exact same as commas and newlines, but you don't have to worry about escaping them because (unless your data is binary or recursive) the control characters won't show up in the data!


Do you have a reference to how this worked?




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

Search: