When your C++ projects grow a little, you may find yourself needing to log the state of objects. There are two ways of doing this (assuming that you’ll want ...
The simplest way of writing to a file in php is using the file_put_contents function. This implicitly calls fopen, fwrite and fclose, as we know from e.g. c.
In haskell there are two ways to read the stdin stream. Which one to use depends on what you’re trying to accomplish I guess.