is there a way to write serial monitor data to a file in real time on PC?

question fits in the subject, easy!

i want to have another program read the file as the arduino is running, i figure shared file is simpler than shared memory

thx

You can't do that with the Arduino Serial Monitor but most of the regular terminal emulator programs such as PuTTY and RealTerm have the option to save the incoming data to a file. Use one of them in place of the Serial Monitor.

...R

Why not just have the program on the PC read directly from the serial port? If you need a record of what was received, let the PC program take care of writing the file.