Count No of Records in File without counting Header and Trailer Records

I have a flat file and need to count no of records in the file less the header and the trailer record.

I would appreciate any and all asistance

Thanks

Hadi Lalani

Guiguy,
Please, include all relevant information, such as a sample of
the file and tell us what is "header" and what is "trailer", so
that we may be able to help you.

it depends on how your file format is, usually, header and trailer make up 2 records..
so you can just wc -l and then minus 2 .