Yea there&#39;s really no reason why this sort of functionality shouldn&#39;t be available. Worst case it could fail on archived files.<br><br><div class="gmail_quote">On Sat, Apr 25, 2009 at 3:23 AM, Matheus Izvekov <span dir="ltr">&lt;<a href="mailto:mizvekov@gmail.com">mizvekov@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">&gt; Since the library can&#39;t write to files inside archives at the moment<br>

&gt; anyway, I don&#39;t think it&#39;s fair to expect such functionality when<br>
&gt; opening a file for both reading and writing either.<br>
<br>
</div>Well this argument fails to account for the fact that physfs separates<br>
writable files from everything else. Also, openAppend already violates<br>
this.<br>
<div class="im"><br>
&gt; The proposed solution would be better to implement in your application<br>
&gt; rather than inside PhysFS. We do something similar with music files<br>
&gt; currently, because SDL_mixer can only stream from physical files. So<br>
&gt; if a music file is inside an archive, we temporarily extract it to the<br>
&gt; writable directory.<br>
&gt;<br>
<br>
</div>I don&#39;t see how would that apply to me. If I can&#39;t have rw files, the<br>
best solution after that would be to keep the file path around instead<br>
of just the file handle, and open it for either read or write depending<br>
on the operation, and then close it shortly after. Performance issues<br>
and memory fragmentation aside, this is very unpleasant to maintain, and<br>
I would much rather have platform dependance.<br>
<div><div></div><div class="h5"><br>
&gt; Regards,<br>
&gt; Bjørn<br>
&gt; _______________________________________________<br>
&gt; physfs mailing list<br>
&gt; <a href="mailto:physfs@icculus.org">physfs@icculus.org</a><br>
&gt; <a href="http://icculus.org/mailman/listinfo/physfs" target="_blank">http://icculus.org/mailman/listinfo/physfs</a><br>
_______________________________________________<br>
physfs mailing list<br>
<a href="mailto:physfs@icculus.org">physfs@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/physfs" target="_blank">http://icculus.org/mailman/listinfo/physfs</a><br>
</div></div></blockquote></div><br>