Hacker News new | ask | show | jobs
by Dylan16807 68 days ago
The secure answer is that the OS gives you a trusted file picker and it grants access to that specific file to the text editor.

This works better with a GUI, but you can adapt it to a console too.