3 ms·
I'm just gonna leave this here. https://git.sr.ht/~sforman/sv/tree/master/item/sv.py https://git.sr.ht/~sforman/sv/tree/master/item/sv.py (Python code for ASC
by carapace 4y ago
I'm just gonna leave this here.
https://git.sr.ht/~sforman/sv/tree/master/item/sv.py https://git.sr.ht/~sforman/sv/tree/master/item/sv.py
(Python code for ASCII-separated values. TL;DR: it's so stupid simple that I feel any objection to using this format has just got to be wrong. It's like "Hey, we don't have to keep stabbing ourselves in the face." ... "But how will we use our knives?" See? It's like that.)
- a1369209993 4y ago> any objection to using this format How do I edit the data file in a text editor? More generally, how do I edit the entire data file, including field/record/etc seperators, in a editor that can display only characters that are valid content of data fields? (Not that CSV (barring de-facto-nonstandard extensions like rfc4180's `"b CRLF bb"` and `"b""bb"`) is any good for this either, of course.)
- CRConrad 4y ago> > any objection to using this format > How do I edit the data file in a text editor? Use a non-sucky text editor. For example, AFAICR NotePad++ displays those characters. Windows doesn't have any ultra-easy way to input them, but within NP++ you can copy-paste them.
- a1369209993 4y ago> For example, AFAICR NotePad++ displays those characters. Great! Now go back to the other half of the requirement: how do I store all characters that NotePad++ displays in the content of a data field?
- CRConrad 4y agoThese delimiters, you mean? You don't. They're delimiters, they never go in a field. Bam, problem solved. (Or rather, problem didn't exist in the first place.)
- mro_name 4y agoindeed, if the text editor doesn't care, it's no help. Same for all other characters - be it tab, cr, lf, crlf, ä, and so on. Choose your tools wisely, I'm not aware the situation.