# Append a text file

**URL:** <https://discourse.processing.org/t/append-a-text-file/2004>\
**Category:** Coding Questions\
**Created:** [July 23, 2018, 9:18am UTC](https://discourse.processing.org/t/append-a-text-file/2004 "2018-07-23T09:18:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lightiix](https://avatars.discourse-cdn.com/v4/letter/l/df705f/32.png) [@Lightiix](https://discourse.processing.org/u/Lightiix)\
**Post date:** [July 23, 2018, 9:18am UTC](https://discourse.processing.org/t/append-a-text-file/2004/1 "2018-07-23T09:18:47Z")

</div>

Hello everyone,  
I am writing a program using p5.js for broswser, and I want to save ma data in a text file.  
I am able to load the file with loadStrings() but every function to save the data prompts download to the client and I want to save the file in the server computer.  
i tried save(), saveStrings() and CreateWriter(), but none of them do what I want.  
Any idea how to do it?  
Thank you!

---

<div class="post-metadata">

**Author:** ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Post date:** [July 25, 2018, 1:48pm UTC](https://discourse.processing.org/t/append-a-text-file/2004/2 "2018-07-25T13:48:51Z")

</div>

> [@Lightiix](#):
>
> every function to save the data prompts download to the client and I want to save the file in the server computer

To clarify, are you running your script on a local server environemt set in your computer?

This post might interest you: [Using p5.js in a node.js server - Processing 2.x and 3.x Forum](https://forum.processing.org/two/discussion/16797/using-p5-js-in-a-node-js-server)

Kf

**Keyword:** p5.js headless virtual browser phantomjs kf\_keyword
