In the Pervasives module, we have an
output_string which takes care of writing a string on an output channel, even if the string is huge.
On the other hand, there is no
read_string:in_channel -> string function that reads all the remaining text in an input channel (assuming it corresponds to a text file).
Is this deliberate ? I would naively have thought that reading and writing are rather symmetrical operations.