# Big CSV: read latest line

**URL:** <https://discourse.nodered.org/t/big-csv-read-latest-line/18879>\
**Category:** General\
**Created:** [7 December 2019 11:38 UTC](https://discourse.nodered.org/t/big-csv-read-latest-line/18879 "2019-12-07T11:38:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![derJay](https://avatars.discourse-cdn.com/v4/letter/d/74df32/32.png) [@derJay](https://discourse.nodered.org/u/derJay)\
**Post date:** [7 December 2019 11:38 UTC](https://discourse.nodered.org/t/big-csv-read-latest-line/18879/1 "2019-12-07T11:38:49Z")

</div>

Hi!

this is my first post, so let me introduce myself. My name is Jay and I am from Switzerland.

I have a tab delimited CSV file from a door controller which is growing fast  
Could you help me, how to extract the last line?

Best regards,  
Jay

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [7 December 2019 15:13 UTC](https://discourse.nodered.org/t/big-csv-read-latest-line/18879/2 "2019-12-07T15:13:16Z")

</div>

Tail node connected to a csv node should do the job nicely (assuming the file gets closed between each line being written)

---

<div class="post-metadata">

**Author:** ![wb666greene](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wb666greene/32/6534_2.png) [@wb666greene](https://discourse.nodered.org/u/wb666greene)\
**Post date:** [7 December 2019 16:33 UTC](https://discourse.nodered.org/t/big-csv-read-latest-line/18879/3 "2019-12-07T16:33:01Z")

</div>

If your system is Linux based, take a look at the tail node. I believe the tail node, based on Linux taif -f command works if the file is not closed after every write, typically used to monitor the output of log files.

You may need to modify your writing process to call flush() after every line is written if you want timely updates.
