function gets file path but i have a string with the file content
<p>I have a string with file content .
But my function deals with file path on the disc .
Any idea how i can solve this problem without writing to the disc my file content ?</p>

<p>Thanks for help.</p>
