in reply to How do i count lines from data file?
I think you should consider your program's design a little more. Requiring a data file to be small makes me suspect that some minor requirement has led you to the tail wagging the dog.
Usually, limiting the utility of data is not a good thing. If you have a business reason to restrict catalog size, it may be wiser to apply the restriction elsewhere than the data file itself.
After Compline,
Zaxo
|
|---|