# Questions about exporting .CSV data to Julia

**URL:** <https://discourse.julialang.org/t/questions-about-exporting-csv-data-to-julia/55796>\
**Category:** Data\
**Tags:** question\
**Created:** [February 22, 2021, 7:21pm UTC](https://discourse.julialang.org/t/questions-about-exporting-csv-data-to-julia/55796 "2021-02-22T19:21:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RaquelSantos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raquelsantos/32/3668_2.png) [@RaquelSantos](https://discourse.julialang.org/u/RaquelSantos)\
**Post date:** [February 22, 2021, 7:21pm UTC](https://discourse.julialang.org/t/questions-about-exporting-csv-data-to-julia/55796/1 "2021-02-22T19:21:09Z")

</div>

In a single file in the `.CSV` I created two tabs, but when I try to read this data in Julia, the following error message appears to me: `ArgumentError: "filename.csv" is not a valid file`

Can someone help me?  
Thanks

---

<div class="post-metadata">

**Author:** ![Nosferican](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nosferican/32/9275_2.png) [@Nosferican](https://discourse.julialang.org/u/Nosferican)\
**Post date:** [February 22, 2021, 7:28pm UTC](https://discourse.julialang.org/t/questions-about-exporting-csv-data-to-julia/55796/2 "2021-02-22T19:28:05Z")

</div>

To better help you please share the code you are using. For reading a CSV file you can use

```julia
using CSV, DataFrames
pathtofile = "filename.csv" # Verify the file exists through `isfile`
# you can check the files in your working directory through `readdir(".")`
# if your file is somewhere else you can use the absolute or relative path
# For example, `joinpath("data", "thefileIjustmade.csv")`
data = CSV.read(pathtofile, DataFrame)

```

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [February 22, 2021, 8:04pm UTC](https://discourse.julialang.org/t/questions-about-exporting-csv-data-to-julia/55796/3 "2021-02-22T20:04:29Z")

</div>

That’s the error message that you’ll usually see when you’ve got the wrong file path. Are you sure the file exists in the location you’re giving to CSV.read? If you’re not specifying a full path, Julia will just check in the current working directory, so make sure you either do specify the full path or `cd` into the directory in which your file lives.
