# Serial print saving data (\*.txt) on PC

**URL:** <https://forum.arduino.cc/t/serial-print-saving-data-txt-on-pc/327161>\
**Category:** Programming\
**Created:** [August 1, 2015, 11:54am UTC](https://forum.arduino.cc/t/serial-print-saving-data-txt-on-pc/327161 "2015-08-01T11:54:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Domino60](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/domino60/32/216627_2.png) [@Domino60](https://forum.arduino.cc/u/Domino60)\
**Post date:** [August 1, 2015, 11:54am UTC](https://forum.arduino.cc/t/serial-print-saving-data-txt-on-pc/327161/1 "2015-08-01T11:54:42Z")

</div>

Hi,

I've been searching today on internet how to save serial monitor data on a \*.txt file directly on PC,  
I saw some tutorials and people use different kind of programs to read the serial monitor then  
save the data or using processing to save data on \*.txt file but what i actually need is to save  
data (printf's) directly to a \*.txt without any kind of outside help, only code.

Do you know any kind of way to do that?

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [August 1, 2015, 12:17pm UTC](https://forum.arduino.cc/t/serial-print-saving-data-txt-on-pc/327161/2 "2015-08-01T12:17:12Z")

</div>

> what i actually need is to save data (printf's) directly to a \*.txt without any kind of outside help, only code.

If you mean "only code running on the Arduino", you can forget it. The Arduino can NOT make a PC save data to a file. Of any kind.

The Arduino can write data to the serial port. There MUST be an application running on the PC that listens to the serial port and does what you want it to do with the data.

There are other serial monitor type application, such as hyperterminal, that can save the incoming serial data to a file as well as displaying it.

---

<div class="post-metadata">

**Author:** ![Domino60](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/domino60/32/216627_2.png) [@Domino60](https://forum.arduino.cc/u/Domino60)\
**Post date:** [August 1, 2015, 12:42pm UTC](https://forum.arduino.cc/t/serial-print-saving-data-txt-on-pc/327161/3 "2015-08-01T12:42:37Z")

</div>

> The Arduino can write data to the serial port. There MUST be an application running on the PC that listens to the serial port and does what you want it to do with the data.

Interesting how a "arduino" can create and save data on a sc card but can't on pc.  
Well looks like i need a sc card 😃

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [August 1, 2015, 12:53pm UTC](https://forum.arduino.cc/t/serial-print-saving-data-txt-on-pc/327161/4 "2015-08-01T12:53:52Z")

</div>

> Interesting how a "arduino" can create and save data on a sc card but can't on pc.

The Arduino can ONLY do that when the SD card reader/writer is DIRECTLY attached to the Arduino. Put the SD card in the PC, and expect the Arduino to write to it, and you are guaranteed to fail.

---

<div class="post-metadata">

**Author:** ![Domino60](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/domino60/32/216627_2.png) [@Domino60](https://forum.arduino.cc/u/Domino60)\
**Post date:** [August 1, 2015, 1:16pm UTC](https://forum.arduino.cc/t/serial-print-saving-data-txt-on-pc/327161/5 "2015-08-01T13:16:26Z")

</div>

> The Arduino can ONLY do that when the SD card reader/writer is DIRECTLY attached to the Arduino. Put the SD card in the PC, and expect the Arduino to write to it, and you are guaranteed to fail.

Yea, i agree, I just remember i done it once with arduino but probably was on sd card. I've seed some people  
and me using sd card module to program them with arduino but lately I've seen a person connecting directly  
a sd card with atmega chip, do you know anything about it?

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 5, 2021, 9:24pm UTC](https://forum.arduino.cc/t/serial-print-saving-data-txt-on-pc/327161/6 "2021-05-05T21:24:55Z")

</div>


