For me, the first hit of Search results for 'last line of file' - Node-RED Forum is CSV file - last line require which appears to be be exactly what you are asking. Probably other hits there also address the issue.
For me, the first hit of Search results for 'last line of file' - Node-RED Forum is CSV file - last line require which appears to be be exactly what you are asking. Probably other hits there also address the issue.