Fetch particular pattern from file and read file
<p>I  have text file which contain some pattern(First I thought to use awk command into text file
into C++).The below solution works fine for us one single file.</p>

<p><a href="http://stackoverflow.com/questions/15151055/truncate-file-in-linux">Truncate File in Linux</a> </p>

<p>But We are getting multiple file which also contain different pattern.So we need to write awk
command for each file which will not be generic solution.</p>

<p>Than after I have found lexer (Flex) for pattern matching in c++ (linux enviroment) But I faced some issue and could write lexer file. So I thought do we have any open source library in linux platform for pattern match in text file and convert into xml file. ( work in progress  for google but do not have any concrete solution).</p>

<p>In brief,
1)Search Pattern into Text File(In current, we are using awk command in c++ (in case any general solution)
2)Read Tabular format file into C++.</p>

<p>I hope I am able to convey my message.</p>
