Writing serial monitor to file

There are other serial monitor applications that have this ability. I don't think most users would need this.

The primary purpose of the serial monitor is to debug sketches, not to be a data collector. If you need a data collector, you are using the wrong tool.