# Where is the directory to save your .csv data?

**URL:** <https://discourse.processing.org/t/where-is-the-directory-to-save-your-csv-data/27846>\
**Category:** Beginners\
**Created:** [February 15, 2021, 7:48pm UTC](https://discourse.processing.org/t/where-is-the-directory-to-save-your-csv-data/27846 "2021-02-15T19:48:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghost1](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/ghost1/32/9097_2.png) [@ghost1](https://discourse.processing.org/u/ghost1)\
**Post date:** [February 15, 2021, 7:48pm UTC](https://discourse.processing.org/t/where-is-the-directory-to-save-your-csv-data/27846/1 "2021-02-15T19:48:58Z")

</div>

where is the directory to save your .csv data?

---

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [February 16, 2021, 2:10pm UTC](https://discourse.processing.org/t/where-is-the-directory-to-save-your-csv-data/27846/2 "2021-02-16T14:10:57Z")

</div>

Hi,

There is no “special” directory where you need to save your .CSV data, however if you check the documentation of the [`saveTable()`](https://processing.org/reference/saveTable_.html) function, they say :

```auto
saveTable(table, "data/new.csv");

```

So it’s saving the file in the `data` folder but it’s in the sketch folder since paths are relative to it by default (where you have your code if you saved it somewhere).

You can also save it to an absolute path on your computer for example `/home/bob/Documents/table.csv` on Linux.

So for example you have this :

```auto
sketch // -> The folder of your sketch
├── data
│ └── table.csv // -> Your CSV file
└── sketch.pde // -> Your code

1 directory, 2 files

```

Hope it helps! 😉

---

<div class="post-metadata">

**Author:** ![SNICKRS](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@SNICKRS](https://discourse.processing.org/u/SNICKRS)\
**Post date:** [February 16, 2021, 2:23pm UTC](https://discourse.processing.org/t/where-is-the-directory-to-save-your-csv-data/27846/3 "2021-02-16T14:23:27Z")

</div>

The data directory. If you don’t have it in your sketch files, make one in your sketch folder.
