# Creating and saving file localy on p5

**URL:** https://discourse.processing.org/t/creating-and-saving-file-localy-on-p5/14727
**Category:** Beginners
**Created:** [October 15, 2019, 11:12pm UTC](https://discourse.processing.org/t/creating-and-saving-file-localy-on-p5/14727 "2019-10-15T23:12:14Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![GuilhermeVolker](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/guilhermevolker/32/5657_2.png) [@GuilhermeVolker](https://discourse.processing.org/u/GuilhermeVolker)
#### Post date: [October 15, 2019, 11:12pm UTC](https://discourse.processing.org/t/creating-and-saving-file-localy-on-p5/14727/1 "2019-10-15T23:12:14Z")

</div>

Hi!  
I’m creating a file and i need to save inside a folder but wen i execute the createWriter() and close it, it’s automatically downloads on bowser. Is there a way to make it works as processing do?

```auto
function preload(){
czml = createWriter('gps.czml');
}
function setup(){
  czml.print('blabla');
  czml.close();
}

```

---

<div class="post-metadata">

### Author: ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)
#### Post date: [October 16, 2019, 1:08am UTC](https://discourse.processing.org/t/creating-and-saving-file-localy-on-p5/14727/2 "2019-10-16T01:08:09Z")

</div>

> [@GuilhermeVolker](#):
>
> downloads on bowser

it looks like that, but actually it is not.

the project / code is on the server,  
when the browser starts it downloads the HTML and that code  
and executes it after it finds it in the index.html `<script src="sketch.js"></script>`

ALL ON YOUR COMPUTER.

and in your computer RAM create something ( text picture… ) by your script  
and when you want to save, it asks you where on you computer?  
but FROM RAM,

nothing of this happens at the server side…

so no, saving to server is not possible, must upload later.
