Elixir Read Csv File

[Solved] Elixir Read Csv File | Elixir - Code Explorer | yomemimo.com
Question : elixir read csv file

Answered by : tense-turtle-bspt2d8k5igu

iex> "../test/fixtures/docs/valid.csv"
iex> |> Path.expand(__DIR__)
iex> |> File.stream!
iex> |> CSV.decode
iex> |> Enum.take(2)
[ok: ["a","b","c"], ok: ["d","e","f"]]

Source : https://hexdocs.pm/csv/CSV.html | Last Update : Fri, 07 May 21

Answers related to elixir read csv file

Code Explorer Popular Question For Elixir