user22788: How can I export the readings that are being sent to my Arduino Mega to a file?
I know there is a write() method but I can't find the documentation on how to use it.
I want the file to be created and stored on my PC not an SD card. Also I want to know if there is a way to do this without using external programs.

user16061: You can use a terminal program like putty or Minicom to write that data to a log file. Then you can use whatever program or app to process this log file.
Both programs can read from the serial interface.

22788: <p>How can I export the readings that are being sent to my Arduino Mega to a file?</p>

<p>I know there is a write() method but I can't find the documentation on how to use it.</p>

<p>I want the file to be created and stored on my PC not an SD card. Also I want to know if there is a way to do this without using external programs.</p>
 16061: <p>You can use a terminal program like <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/" rel="nofollow">putty</a> or <a href="https://en.m.wikipedia.org/wiki/Minicom" rel="nofollow">Minicom</a> to write that data to a log file. Then you can use whatever program or app to process this log file.
Both programs can read from the serial interface.</p>
