Wait for writing file
<p>I have an small app that write data to file then reading back data, </p>

<pre><code>writeData();
readData();
</code></pre>

<p>but it seems that readData() is executed before WriteData() finished its execution, is there any away to wait for writeData()?
<br>Thank you very much.</p>
