I wish I was more savy as to pose this question in a way that is more clear but let me try to explain. I have a data file that consists of binary data with an ascii based header applied to the beginning of the binary data. When the data is ultimately used the (routing) header is removed and the binary data is written out to file. I am wanting to refine our data management process and improve a file processing daemon which currently is painfully slow. I was trying to find the best way to read in the data file WITHOUT reading in the whole file and without depending on system based commands like "head". Some of the files are in excess of 30 Megs and all I care about are at most the first 13-18 lines within the file. The end of the header is denoted by a END text string (go figure). Ideally I would like to read the file from the beginning up until this "END" string and then close the filehandle so that I can process the data file based on this ascii header content. Any advice on how I can tackle this or even what modules might benefit my endeavors would be appreciated. My searches at this point have been fruitless.
Thanx in advance,
MadPogo
~~ What does not kill me makes me stronger, right?