PHP code on C++
<p>I would like to know how this code would look in C++:</p>

<pre><code>&lt;?php

$read=fread(fopen('cookie.txt', 'r'), filesize('cookie.txt'));


$pattern = "/[a-f0-9]{32}/";
preg_match($pattern, $read, $matches);
echo $matches[0];

?&gt;
</code></pre>
