<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>How to detect error with al_create_fs_entry()?</title>
		<link>http://www.allegro.cc/forums/view/610139</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Tue, 01 May 2012 03:54:06 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I was trying to get the filesize of a particular file by using al_create_fs_entry() and it insisted the filesize was zero.  The only error checking I&#39;d done was to make sure the ALLEGRO_FS_ENTRY wasn&#39;t null.  When I gave up to use the fseek(fp,0,SEEK_END) method, my error checking told me that the file couldn&#39;t be opened because it didn&#39;t exist (filename typo).  How can this type of error be detected?</p><p>[EDIT]  Forgot cookies, darn it! <img src="http://www.allegro.cc/forums/smileys/undecided.gif" alt=":-/" /></p><p>[EDIT2]</p><p>I just stumbled across al_fs_entry_exists(), sorry!  I need to slow down.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Arthur Kalliokoski)</author>
		<pubDate>Tue, 01 May 2012 03:44:26 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It&#39;s not an error, in principle, since you can use ALLEGRO_FS_ENTRY to create files. The function you&#39;re looking for is probably <span class="source-code"><a href="http://www.allegro.cc/manual/al_fs_entry_exists"><span class="a">al_fs_entry_exists</span></a></span>.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Tue, 01 May 2012 03:52:03 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>OK, thanks Siegelord!  Here&#39;s your cookie!</p><p><span class="remote-thumbnail"><span class="json">{"name":"Cookie.gif","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/d\/1\/d187a2cf483dbc700e36210cd73298ee.gif","w":382,"h":380,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/d\/1\/d187a2cf483dbc700e36210cd73298ee"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/d/1/d187a2cf483dbc700e36210cd73298ee-240.jpg" alt="Cookie.gif" width="240" height="238" /></span>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Arthur Kalliokoski)</author>
		<pubDate>Tue, 01 May 2012 03:54:06 +0000</pubDate>
	</item>
</rss>
