# Removing Header from a Flat File

**URL:** <https://techcommunity.softwareag.com/t/removing-header-from-a-flat-file/108671>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [April 6, 2005, 11:05pm UTC](https://techcommunity.softwareag.com/t/removing-header-from-a-flat-file/108671 "2005-04-06T23:05:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shantanu\_bhagat](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@shantanu\_bhagat](https://techcommunity.softwareag.com/u/shantanu_bhagat)\
**Post date:** [April 6, 2005, 11:05pm UTC](https://techcommunity.softwareag.com/t/removing-header-from-a-flat-file/108671/1 "2005-04-06T23:05:27Z")

</div>

Hi,  
What would be the most efficient method to remove a line from a Flat file?  
Suppose i have a flat file with a header record followed by multiple data records. And i want to strip off the header before passing on the file to the next system. How can i do it without parsing through the complete file?  
Is there an efficient way to just peek in the file and remove the header ?

Thanks & Regards  
Shantanu

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:05pm UTC](https://techcommunity.softwareag.com/t/removing-header-from-a-flat-file/108671/2 "2021-04-02T15:05:19Z")

</div>


