# Concatenate csv files without loading them

**URL:** <https://discourse.julialang.org/t/concatenate-csv-files-without-loading-them/35527>\
**Category:** General Usage\
**Tags:** question, csv\
**Created:** [March 4, 2020, 3:22pm UTC](https://discourse.julialang.org/t/concatenate-csv-files-without-loading-them/35527 "2020-03-04T15:22:48Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [February 12, 2022, 11:33pm UTC](https://discourse.julialang.org/t/concatenate-csv-files-without-loading-them/35527/5 "2022-02-12T23:33:19Z")

</div>

> [@rafael.guerra](#):
>
> Steve’s nice solution using: `Iterators.drop(eachline(input), 1)` reads and writes the files line by line.

After you read the first line to strip off the header, it will be a lot faster to read the file in chunks, as in this example: [How to obtain the result of a diff between 2 files in a loop? - #4 by stevengj](https://discourse.julialang.org/t/how-to-obtain-the-result-of-a-diff-between-2-files-in-a-loop/23784/4)

---

_[View the full topic](https://discourse.julialang.org/t/concatenate-csv-files-without-loading-them/35527)._
