# Location for .csv file to place

**URL:** https://discourse.processing.org/t/location-for-csv-file-to-place/2116
**Category:** Coding Questions
**Created:** [July 27, 2018, 2:37am UTC](https://discourse.processing.org/t/location-for-csv-file-to-place/2116 "2018-07-27T02:37:13Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Newcoder](https://avatars.discourse-cdn.com/v4/letter/n/a3d4f5/32.png) [@Newcoder](https://discourse.processing.org/u/Newcoder)
#### Post date: [July 27, 2018, 2:37am UTC](https://discourse.processing.org/t/location-for-csv-file-to-place/2116/1 "2018-07-27T02:37:13Z")

</div>

Hi, can anyone advise me where exactly to put the csv file in order for the sketch to work? I had tried create a data folder in the same folder location as my sketch folder and also try create the data folder with the sketch folder, it does do work. Red colour message : xxxx.csv does not exist or could not be read.

Thanks.

---

<div class="post-metadata">

### Author: ![Trilobyte](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/trilobyte/32/361_2.png) [@Trilobyte](https://discourse.processing.org/u/Trilobyte)
#### Post date: [July 27, 2018, 3:57am UTC](https://discourse.processing.org/t/location-for-csv-file-to-place/2116/2 "2018-07-27T03:57:40Z")

</div>

Newcoder,  
If you click “sketch” and then “add file” you can add the .csv file to the sketch folder. The sketch should be able to read the file without specifying the whole filepath. If this does not work, why don’t you post your code as a reply to this post (also, select the code and hit the \</\> button to format it when you do) and then we can look through it.  
Good luck!

- Trilobyte

---

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [July 27, 2018, 9:23am UTC](https://discourse.processing.org/t/location-for-csv-file-to-place/2116/3 "2018-07-27T09:23:10Z")

</div>

Easiest way to add files to a sketch: Use the mouse to drag & drop the file into the PDE (Processing’s IDE). 🕶

---

<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 27, 2018, 6:08pm UTC](https://discourse.processing.org/t/location-for-csv-file-to-place/2116/4 "2018-07-27T18:08:02Z")

</div>

@Newcoder Another way… if you are using Processing java flavor: in the PDE, press `ctrl+k` and that should open a file browser in your sketch folder. Create the `data` folder in there and store all your external resources there.

All functions like loadBytes, LoadStrings, loadImage, etc. will look at this folder when loading this resources. You can look up this information in the Processing Foundation’s reference site.

Kf
