# Save file with custom file name

**URL:** https://discourse.processing.org/t/save-file-with-custom-file-name/39271
**Category:** Beginners
**Created:** [October 14, 2022, 7:02pm UTC](https://discourse.processing.org/t/save-file-with-custom-file-name/39271 "2022-10-14T19:02:32Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![bask185](https://avatars.discourse-cdn.com/v4/letter/b/3da27b/32.png) [@bask185](https://discourse.processing.org/u/bask185)
#### Post date: [October 14, 2022, 7:02pm UTC](https://discourse.processing.org/t/save-file-with-custom-file-name/39271/1 "2022-10-14T19:02:32Z")

</div>

I have a question. I made a GUI which can store and load a .csv. Currently I can have only one .csv file with a fixed name. I want to work with a folder and several files instead.

I know of atleast one way to work with several files which simply is ‘just code it’. It is not that incredibly hard but I am wondering if there are perhaps easy tricks/libaries for to do it ‘better’?

What I miss is that I cannot make use of those convenient OS windows with which you can save and load files and such. Like every PC program can do…

Is it possible to do something similar in processing? (to work with OS windows)

Kind regards,

Bas

---

<div class="post-metadata">

### Author: ![sableraph](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sableraph/32/251_2.png) [@sableraph](https://discourse.processing.org/u/sableraph)
#### Post date: [October 14, 2022, 7:48pm UTC](https://discourse.processing.org/t/save-file-with-custom-file-name/39271/2 "2022-10-14T19:48:29Z")

</div>

Hi @bask185,

The function you’re looking for is called [selectInput()](https://processing.org/reference/selectInput_.html)

You’ll find more info on how to use it in this thread:

> [@Is there a "file -\> open" possibility inside of a sketch?](https://discourse.processing.org/t/is-there-a-file-open-possibility-inside-of-a-sketch/29102):
>
> I am using the sketch to read various CSV files that have a date in them. Then I interpret the data and make graphs out of it. I use table = loadTable(“Infinity\_Report\_3\_31\_2021.csv”, “header”); Then I populate arrays with my data. I would like to browse inside the sketch to different files I want to open. Like you go in “word” and browse for files to open. Long term I would want to select a date range and open multiple files and see trends… Is this possible? Also I am trying to open a…

---

<div class="post-metadata">

### Author: ![bask185](https://avatars.discourse-cdn.com/v4/letter/b/3da27b/32.png) [@bask185](https://discourse.processing.org/u/bask185)
#### Post date: [October 14, 2022, 8:19pm UTC](https://discourse.processing.org/t/save-file-with-custom-file-name/39271/3 "2022-10-14T20:19:04Z")

</div>

Tnx, seems to be that what I am looking for. I will give it a try

---

<div class="post-metadata">

### Author: ![sableraph](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sableraph/32/251_2.png) [@sableraph](https://discourse.processing.org/u/sableraph)
#### Post date: [October 14, 2022, 9:02pm UTC](https://discourse.processing.org/t/save-file-with-custom-file-name/39271/4 "2022-10-14T21:02:17Z")

</div>

And for saving a file you can check the [Output \> Files](https://processing.org/reference#output-files) section of the Processing reference.

---

<div class="post-metadata">

### Author: ![bask185](https://avatars.discourse-cdn.com/v4/letter/b/3da27b/32.png) [@bask185](https://discourse.processing.org/u/bask185)
#### Post date: [October 14, 2022, 9:20pm UTC](https://discourse.processing.org/t/save-file-with-custom-file-name/39271/5 "2022-10-14T21:20:10Z")

</div>

Yeah I figured that out already with the processing docs ;)… once you know what to look for…

I have both saving and loading exactly working as intented.

Many thanks,

Bas
