# saveStrings again

**URL:** <https://discourse.processing.org/t/savestrings-again/26037>\
**Category:** Beginners\
**Created:** [December 8, 2020, 5:58am UTC](https://discourse.processing.org/t/savestrings-again/26037 "2020-12-08T05:58:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CND](https://avatars.discourse-cdn.com/v4/letter/c/e79b87/32.png) [@CND](https://discourse.processing.org/u/CND)\
**Post date:** [December 8, 2020, 5:58am UTC](https://discourse.processing.org/t/savestrings-again/26037/1 "2020-12-08T05:58:51Z")

</div>

I can not get the example to work. I have tried it with & without an existing target file in the home folder. Does this have to be done on a server?

---

<div class="post-metadata">

**Author:** ![tabreturn](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tabreturn/32/3697_2.png) [@tabreturn](https://discourse.processing.org/u/tabreturn)\
**Post date:** [December 8, 2020, 6:35am UTC](https://discourse.processing.org/t/savestrings-again/26037/2 "2020-12-08T06:35:59Z")

</div>

It’s supposed to prompt your web browser to open/save the file. This should work fine –

```auto
let words = 'apple bear cat dog';

function setup() {
  createCanvas(100, 100);
  background(200);
  text('click here to save', 10, 10, 70, 80);
  words = split(words, ' ');
}

function mousePressed() {
  saveStrings(words, 'nouns.txt');
}

```

I’ve moved the `split()` to the `setup()` block, and simplified things by reassigning the array to `words` and removing the condition in the `mousePressed()`.

---

<div class="post-metadata">

**Author:** ![CND](https://avatars.discourse-cdn.com/v4/letter/c/e79b87/32.png) [@CND](https://discourse.processing.org/u/CND)\
**Post date:** [December 12, 2020, 11:02pm UTC](https://discourse.processing.org/t/savestrings-again/26037/3 "2020-12-12T23:02:36Z")

</div>

It still needs to read words.split("); //// NOT split(words, " ")

I get the prompt but no ‘nouns’.txt" file. Is it in my downloads folder maybe?

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [December 12, 2020, 11:26pm UTC](https://discourse.processing.org/t/savestrings-again/26037/4 "2020-12-12T23:26:31Z")

</div>

> [@tabreturn](#):
>
> ` words = split(words, ' ');`

works for me though.

> [@CND](#):
>
> Is it in my downloads folder maybe?

Have you checked??

I find the text file in my download folder.

This might depend on your browser (and OS), I use Firefox

C:\Users\Chrisir\Downloads
