# Filter CSV file read stream for specific number, get belonging text

**URL:** <https://discourse.nodered.org/t/filter-csv-file-read-stream-for-specific-number-get-belonging-text/73969>\
**Category:** General\
**Created:** [20 January 2023 14:02 UTC](https://discourse.nodered.org/t/filter-csv-file-read-stream-for-specific-number-get-belonging-text/73969 "2023-01-20T14:02:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![markrickenbacher](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@markrickenbacher](https://discourse.nodered.org/u/markrickenbacher)\
**Post date:** [20 January 2023 14:02 UTC](https://discourse.nodered.org/t/filter-csv-file-read-stream-for-specific-number-get-belonging-text/73969/1 "2023-01-20T14:02:06Z")

</div>

Im using node red v3.02

I'm reading a cvs file with the cvs node and get the following messages out:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/5/f5be848b3df20024380e44c12c5caf62bdad3e76.png)

As you can see I have several ID's (ErrorCodes) and a corresponding text (ErrorText). I have another Node sending me the current ErrorCode (ID).

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/4/24d8496bd8791fabf1d06b924e3d1af57484db95.png)

What I want to do is to initially read the file store it somewhere (in a global array??) and as soon an ErrorCode (ID) is given search for the corresponding text. I don't know where to store file information and I don't know how to read out the corresponding text

Perhaps someone out there can help me out

---

<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:** [21 March 2023 14:02 UTC](https://discourse.nodered.org/t/filter-csv-file-read-stream-for-specific-number-get-belonging-text/73969/2 "2023-03-21T14:02:46Z")

</div>

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