# CSV.read provide a valid sink error

**URL:** <https://discourse.julialang.org/t/csv-read-provide-a-valid-sink-error/53878>\
**Category:** New to Julia\
**Tags:** question, error\
**Created:** [January 24, 2021, 9:18pm UTC](https://discourse.julialang.org/t/csv-read-provide-a-valid-sink-error/53878 "2021-01-24T21:18:09Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [January 24, 2021, 9:27pm UTC](https://discourse.julialang.org/t/csv-read-provide-a-valid-sink-error/53878/2 "2021-01-24T21:27:28Z")

</div>

first, have you tried doing what the error msg suggests?

* * *

also please read the documentation:

```julia
CSV.File(path)

```

see also:

> [@CSV.read Error - provide a valid sink argument](https://discourse.julialang.org/t/csv-read-error-provide-a-valid-sink-argument/50157/11):
>
> The DataFrame one should be DataFrame(CSV.File(data\_file)) and still works. CSV.read used to work with a dataframe output as default, but was deprecated so CSV.jl doesn’t have to depend on DataFrames.jl It was then brought back as CSV.read(filepath, sink) as users were expecting a CSV.read function, and this structure means DataFrames only has to be loaded by the user if a DataFrame output is actually required.

---

_[View the full topic](https://discourse.julialang.org/t/csv-read-provide-a-valid-sink-error/53878)._
