Skip to main content
Solved

Read only the 1st line of Text/CSV File


mmccart
Contributor
Forum|alt.badge.img+16

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

Best answer by ebygomm

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

View original
Did this help you find an answer to your question?

2 replies

ebygomm
Influencer
Forum|alt.badge.img+31
  • Influencer
  • Best Answer
  • March 3, 2020

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


mmccart
Contributor
Forum|alt.badge.img+16
  • Author
  • Contributor
  • March 3, 2020
ebygomm wrote:

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!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings