# Remove empty line in CSV

**URL:** <https://discourse.nodered.org/t/remove-empty-line-in-csv/67690>\
**Category:** General\
**Created:** [14 September 2022 09:14 UTC](https://discourse.nodered.org/t/remove-empty-line-in-csv/67690 "2022-09-14T09:14:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![iqbal](https://avatars.discourse-cdn.com/v4/letter/i/bc8723/32.png) [@iqbal](https://discourse.nodered.org/u/iqbal)\
**Post date:** [14 September 2022 09:14 UTC](https://discourse.nodered.org/t/remove-empty-line-in-csv/67690/1 "2022-09-14T09:14:10Z")

</div>

![node red problem](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/d/7d33525e970e6ebacacb5867fa5e63eb21088658.png)  
hai guys, how do i remove empty line? thanks, im still new in node red

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [14 September 2022 09:17 UTC](https://discourse.nodered.org/t/remove-empty-line-in-csv/67690/2 "2022-09-14T09:17:07Z")

</div>

Hi and welcome to the forum.

Dumb question, but why not get rid of the blank line by stopping the program making the file making it?

It is just to me that would be the first way I would attack this problem.  
Sorry I can't be of more help.

But: It can be done. (Anything can be done, it is just knowing how to do it)

You would read in the file (I'm guessing text) and look at each line.  
If the line is _empty_ don't send it.

But as you are new to node-red that is not that easy. Or: I don't know how to do it easily.

---

<div class="post-metadata">

**Author:** ![iqbal](https://avatars.discourse-cdn.com/v4/letter/i/bc8723/32.png) [@iqbal](https://discourse.nodered.org/u/iqbal)\
**Post date:** [15 September 2022 03:07 UTC](https://discourse.nodered.org/t/remove-empty-line-in-csv/67690/3 "2022-09-15T03:07:30Z")

</div>

Thanks bro, i already done it, thanks

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [15 September 2022 06:09 UTC](https://discourse.nodered.org/t/remove-empty-line-in-csv/67690/4 "2022-09-15T06:09:34Z")

</div>

So if you have done that, has it _fixed_ the problem?

---

<div class="post-metadata">

**Author:** ![iqbal](https://avatars.discourse-cdn.com/v4/letter/i/bc8723/32.png) [@iqbal](https://discourse.nodered.org/u/iqbal)\
**Post date:** [19 September 2022 01:48 UTC](https://discourse.nodered.org/t/remove-empty-line-in-csv/67690/5 "2022-09-19T01:48:40Z")

</div>

yap, i fixed the problem

---

<div class="post-metadata">

**Author:** ![smanjunath211](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smanjunath211/32/95742_2.png) [@smanjunath211](https://discourse.nodered.org/u/smanjunath211)\
**Post date:** [19 September 2022 02:13 UTC](https://discourse.nodered.org/t/remove-empty-line-in-csv/67690/6 "2022-09-19T02:13:09Z")

</div>

Hi, good to know that you got it solved. for the benefit of other users who might end up with similar issues, it would help if you post the solution, if you may find it suitable.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [18 November 2022 02:13 UTC](https://discourse.nodered.org/t/remove-empty-line-in-csv/67690/7 "2022-11-18T02:13:13Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
