Skip to main content

I have a CSV file where I need to read only the first line (or first column/line combo) of the file. Is there an easy way to do this with a reader? Or am I stuck reading the whole file? I've tried both the CSV reader and Text File reader. In both, I don't see anyway of isolating this first line of text/data. I'm forced to bring the entire table into the workspace.

 

Thanks in advance!

-Mark

You should be able to set the max features to read to 1 in the csv reader parameters in the navigator


You should be able to set the max features to read to 1 in the csv reader parameters in the navigator

Thanks @ebygomm. I actually need to use a FeatureReader, but just saw the 'Max Features To Read' option. I don't know how I missed it.

 

Setting this to '1' worked perfectly!


Reply