# Export console println as text

**URL:** <https://discourse.processing.org/t/export-console-println-as-text/33810>\
**Category:** Beginners\
**Created:** [November 29, 2021, 1:30am UTC](https://discourse.processing.org/t/export-console-println-as-text/33810 "2021-11-29T01:30:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yalaniv](https://avatars.discourse-cdn.com/v4/letter/y/7993a0/32.png) [@yalaniv](https://discourse.processing.org/u/yalaniv)\
**Post date:** [November 29, 2021, 1:30am UTC](https://discourse.processing.org/t/export-console-println-as-text/33810/1 "2021-11-29T01:30:00Z")

</div>

Is there an option to export the console output as a txt or something?  
I need to println more than 10k lines, but it only shows the last few dozens

---

<div class="post-metadata">

**Author:** ![hotfooted](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/hotfooted/32/3670_2.png) [@hotfooted](https://discourse.processing.org/u/hotfooted)\
**Post date:** [November 29, 2021, 1:30am UTC](https://discourse.processing.org/t/export-console-println-as-text/33810/2 "2021-11-29T01:30:41Z")

</div>

> **[Reference](https://processing.org/reference/PrintWriter.html)**
>
> Allows characters to print to a text-output stream. A new PrintWriter object is created with the createWriter() function. For the file to be made correctly, it should be flushed and must be clo…
