News for hackers. Stuff that matters.
Re:Write Plain Text Files by eimrine on Tuesday July 04, 2023 @03:38PM (#36591610)
A treasure in my collection of articles about a plain text.
Re:Write Plain Text Files by behnamoh on Tuesday July 04, 2023 @03:44PM (#36591671)
I'd say all these benefits also exist for markdown files. On top of that, you can easily turn a md into an HTML, no parser needed.

I love the simplicity of text files and I think md provides nice syntax sugar for txt files.

Re:Write Plain Text Files by bediger4000 on Tuesday July 04, 2023 @04:26PM (#36592103)
Do "byte order marks" fall into the domain of plain text files?

If so, how should I consider them? They're usually not visible in a text editor (even vim), which means that simple file concatenation could produce bizarre results if one concatenated a little-endian (UTF-16) with a big-endian file.

Re:Write Plain Text Files by u_name on Tuesday July 04, 2023 @04:32PM (#36592168)
At first i was like "What?! Do we really need a tutorial on how to write and keep text files?!".

But then i realized, that some coworkers of mine were astonished and intrigued by the idea that i keep random notes in simple textfiles (although not in such a tidy hierarchy, but just using the current date as filename).