# Does write() not work in the web editor?

**URL:** <https://discourse.processing.org/t/does-write-not-work-in-the-web-editor/21594>\
**Category:** p5.js\
**Created:** [June 5, 2020, 1:23pm UTC](https://discourse.processing.org/t/does-write-not-work-in-the-web-editor/21594 "2020-06-05T13:23:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![inmc](https://avatars.discourse-cdn.com/v4/letter/i/34f0e0/32.png) [@inmc](https://discourse.processing.org/u/inmc)\
**Post date:** [June 5, 2020, 1:23pm UTC](https://discourse.processing.org/t/does-write-not-work-in-the-web-editor/21594/1 "2020-06-05T13:23:35Z")

</div>

In my project I’m basically trying to make a string of text and save it to my computer in a .txt file.

[https://p5js.org/reference/#/p5.PrintWriter/write](https://p5js.org/reference/#/p5.PrintWriter/write)  
So in the reference for write(), you call the function and it automatically downloads the file. When I run the same exact code in the web editor, nothing happens.

Is it possible to call this function in the web editor? If so, how do I do it?

---

<div class="post-metadata">

**Author:** ![Sven](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sven/32/8293_2.png) [@Sven](https://discourse.processing.org/u/Sven)\
**Post date:** [June 5, 2020, 3:09pm UTC](https://discourse.processing.org/t/does-write-not-work-in-the-web-editor/21594/2 "2020-06-05T15:09:23Z")

</div>

Hello, and welcome to the forum!

I’m guessing you’re using Chrome, right? You’ve stumbled upon [this bug](https://github.com/processing/p5.js-web-editor/issues/1443). Until it is fixed, run your code in the presentation mode (`File > Share`) as a workaround. Or use another browser like Firefox.
