Convert TEXT files to TRECTEXT format : <p>I want to convert my input text file which have this structure :</p>

<pre><code>600 NJoussot    38  fr  Twitter hn  2015    Taubira huée au festival de Cannes
...
</code></pre>

<p>to obtain TRECTEXT format which is like this :</p>

<pre><code>&lt;DOC&gt;
&lt;DOCNO&gt; 600 &lt;/DOCNO&gt;
&lt;TEXT&gt;  Taubira huée au festival de Cannes. &lt;/TEXT&gt;  
&lt;/DOC&gt; 
</code></pre>

<p>Thanks for help :)</p>
