<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Code Snippet &#8211; Quickly Find The Documents Directory</title>
	<atom:link href="/2009/09/09/code-snippet-quickly-find-the-documents-directory/feed/" rel="self" type="application/rss+xml" />
	<link>http://icodeblog.com/2009/09/09/code-snippet-quickly-find-the-documents-directory/</link>
	<description>iPhone Programming Tutorials</description>
	<lastBuildDate>Thu, 13 Jun 2013 12:07:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Merlin11</title>
		<link>http://icodeblog.com/2009/09/09/code-snippet-quickly-find-the-documents-directory/#comment-3408</link>
		<dc:creator>Merlin11</dc:creator>
		<pubDate>Thu, 22 Oct 2009 23:00:57 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1295#comment-3408</guid>
		<description><![CDATA[Many, probably most, of these are chemical engineers or technicians rather than chemists per se. ,]]></description>
		<content:encoded><![CDATA[<p>Many, probably most, of these are chemical engineers or technicians rather than chemists per se. ,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rey</title>
		<link>http://icodeblog.com/2009/09/09/code-snippet-quickly-find-the-documents-directory/#comment-3407</link>
		<dc:creator>rey</dc:creator>
		<pubDate>Tue, 15 Sep 2009 21:47:53 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1295#comment-3407</guid>
		<description><![CDATA[@Michael

&quot;But, there is no way to be sure that the name of the directory will be always â€œDocumentsâ€ for all versions of the os.&quot;  Are you serious?  Renaming the Documents directory in an OS iteration sounds very Microsoft.  Why would anyone do that?]]></description>
		<content:encoded><![CDATA[<p>@Michael</p>
<p>&#8220;But, there is no way to be sure that the name of the directory will be always â€œDocumentsâ€ for all versions of the os.&#8221;  Are you serious?  Renaming the Documents directory in an OS iteration sounds very Microsoft.  Why would anyone do that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: squidbot</title>
		<link>http://icodeblog.com/2009/09/09/code-snippet-quickly-find-the-documents-directory/#comment-3406</link>
		<dc:creator>squidbot</dc:creator>
		<pubDate>Tue, 15 Sep 2009 18:19:21 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1295#comment-3406</guid>
		<description><![CDATA[Here&#039;s the proper one-liner:

[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0]]]></description>
		<content:encoded><![CDATA[<p>Here&#8217;s the proper one-liner:</p>
<p>[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: layne</title>
		<link>http://icodeblog.com/2009/09/09/code-snippet-quickly-find-the-documents-directory/#comment-3405</link>
		<dc:creator>layne</dc:creator>
		<pubDate>Sat, 12 Sep 2009 01:06:21 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1295#comment-3405</guid>
		<description><![CDATA[I tried the following  but it did work for me

	FILE* testFile = fopen(path, &quot;rb&quot;);
	if (testFile) {
		NSLog(@&quot;found file&quot;);
	}]]></description>
		<content:encoded><![CDATA[<p>I tried the following  but it did work for me</p>
<p>	FILE* testFile = fopen(path, &#8220;rb&#8221;);<br />
	if (testFile) {<br />
		NSLog(@&#8221;found file&#8221;);<br />
	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: layne</title>
		<link>http://icodeblog.com/2009/09/09/code-snippet-quickly-find-the-documents-directory/#comment-3404</link>
		<dc:creator>layne</dc:creator>
		<pubDate>Sat, 12 Sep 2009 01:01:59 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1295#comment-3404</guid>
		<description><![CDATA[any ideas on how to test if a file exists?  I download files store them to a path I create by using.

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
	NSString *documentsDirectory = [paths objectAtIndex:0];
	NSString *path = [documentsDirectory stringByAppendingPathComponent:@&quot;csv.txt&quot;];

I would like to know if csv.txt is already there.

Thanks]]></description>
		<content:encoded><![CDATA[<p>any ideas on how to test if a file exists?  I download files store them to a path I create by using.</p>
<p>NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);<br />
	NSString *documentsDirectory = [paths objectAtIndex:0];<br />
	NSString *path = [documentsDirectory stringByAppendingPathComponent:@"csv.txt"];</p>
<p>I would like to know if csv.txt is already there.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://icodeblog.com/2009/09/09/code-snippet-quickly-find-the-documents-directory/#comment-3403</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Wed, 09 Sep 2009 17:20:52 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1295#comment-3403</guid>
		<description><![CDATA[The name of the directory will be the same for all languages. Only the display name is translated to the selected locale. But, there is no way to be sure that the name of the directory will be always &quot;Documents&quot; for all versions of the os. So, hardcoding such values is always a bad idea.]]></description>
		<content:encoded><![CDATA[<p>The name of the directory will be the same for all languages. Only the display name is translated to the selected locale. But, there is no way to be sure that the name of the directory will be always &#8220;Documents&#8221; for all versions of the os. So, hardcoding such values is always a bad idea.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brandon</title>
		<link>http://icodeblog.com/2009/09/09/code-snippet-quickly-find-the-documents-directory/#comment-3402</link>
		<dc:creator>Brandon</dc:creator>
		<pubDate>Wed, 09 Sep 2009 17:11:29 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1295#comment-3402</guid>
		<description><![CDATA[@Alex - Are you sure?  Apple renames the documents directory of an app based on the language?]]></description>
		<content:encoded><![CDATA[<p>@Alex &#8211; Are you sure?  Apple renames the documents directory of an app based on the language?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reese</title>
		<link>http://icodeblog.com/2009/09/09/code-snippet-quickly-find-the-documents-directory/#comment-3401</link>
		<dc:creator>Reese</dc:creator>
		<pubDate>Wed, 09 Sep 2009 16:12:48 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1295#comment-3401</guid>
		<description><![CDATA[I would tend to go with how apple does it rather than this way.  There is usually a method to their madness.]]></description>
		<content:encoded><![CDATA[<p>I would tend to go with how apple does it rather than this way.  There is usually a method to their madness.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Blewitt</title>
		<link>http://icodeblog.com/2009/09/09/code-snippet-quickly-find-the-documents-directory/#comment-3400</link>
		<dc:creator>Alex Blewitt</dc:creator>
		<pubDate>Wed, 09 Sep 2009 15:46:54 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1295#comment-3400</guid>
		<description><![CDATA[Which of course fails to work on non-English platforms as the &quot;Documents&quot; directory is localised to the language in question and is not always &quot;Documents&quot; therefore.]]></description>
		<content:encoded><![CDATA[<p>Which of course fails to work on non-English platforms as the &#8220;Documents&#8221; directory is localised to the language in question and is not always &#8220;Documents&#8221; therefore.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
