Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: stonysmithThis is perhaps not the "best" method, but here's one way that should work:
Add DelimtedFile node to your graph.
Take your Directory List output and connect it to the node.
Edit the node. Go to the I/O tab and add a second output. This output will end up containing any "bad" records.
Now, go to the server, open the source file with whatever editor you like, and copy the 2nd row.. the headers.
Paste the header row into the FieldNames parameter, and change the pipe characters to commas.
Then, for FieldDelimiter, enter the | pipe character (or whatever the file uses)
Then, for RecordDelimiter, enter \n for newline
Try running the node this way. It should produce (at least) two output records on the 2nd output pin.. they will happen to be the 1st and 3rd rows.
=====
Let's start with that much. As a later step, I can show you how to get MUCH more complicated.