in reply to Re^2: printing certain number of data
in thread printing certain number of data

I'm afraid I have no idea of what you are trying to achieve. In your original post you say:

...how to print 8 scalers/elements then \n, then 5 more lines of 8 or less for a max total of 40...

but that makes a maximum total of 48.

And maybe you could show us what your input file looks like?

dave