title: To create all needed folders with fopen
body: <p>I'm using <code>fopen(&quot;aaa\bbb\ccc\myfile.txt&quot;,&quot;w&quot;)</code> to create output file. But folders <code>aaa</code>, <code>bbb</code> and <code>ccc</code> don't exist. What is the best way to solve this problem? Is there are any standard way to ask <code>fopen()</code> to create all needed folders?</p>