ocaml.org
ocaml.org copied to clipboard
New File Manipulation tutorial
Update: @Julow proposes to change the Reading and Writing sections like this: https://github.com/Julow/v3.ocaml.org-server/commit/5cff2c26b2d1b3c826af35bee5522e9a05a8abc6
- The concept of
flushis removed. It is covered later. - The
with_*functions are used as they are safer and more practical. - The mention of
open_binaryis removed. It was not explained and is an advanced concept.
Overall I agree with Jules' assessment: we should promote good practices using the safe APIs and some topics need to be rearranged between advanced topics and the main section.
Closing as stalled. Feedback from Discuss was to use the Unix module instead of the standard library. If anyone would like to port this new tutorial to using Unix, contributions are welcome!