<?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: Read and Write Array, Dictionary and Other Collections to Files</title>
	<atom:link href="http://iPhoneDeveloperTips.com/data-file-management/read-and-write-array-dictionary-and-other-collections-to-files.html/feed" rel="self" type="application/rss+xml" />
	<link>http://iPhoneDeveloperTips.com/data-file-management/read-and-write-array-dictionary-and-other-collections-to-files.html</link>
	<description>Tips and Tricks for iPhone developers</description>
	<lastBuildDate>Sun, 05 Sep 2010 15:32:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Stephen Campbell</title>
		<link>http://iPhoneDeveloperTips.com/data-file-management/read-and-write-array-dictionary-and-other-collections-to-files.html/comment-page-1#comment-12386</link>
		<dc:creator>Stephen Campbell</dc:creator>
		<pubDate>Wed, 31 Mar 2010 22:13:36 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=5492#comment-12386</guid>
		<description>Hi Bill,
I&#039;m using code similar to what you&#039;ve written above. However, writeToFile returns NO when I try to write an array to a file, and the file remains empty.

I&#039;ve used [[NSFileManager defaultManager] isWritableFileAtPath:locFilePath] to verify if the file exists, and is writable, which it is. I can also see the file in the file system using Finder. It is currently empty.

The array I&#039;m trying to write is an array of dictionary objects.

Do you know if there&#039;s a way I can troubleshoot this?

Many thanks,
Stephen C</description>
		<content:encoded><![CDATA[<p>Hi Bill,<br />
I&#8217;m using code similar to what you&#8217;ve written above. However, writeToFile returns NO when I try to write an array to a file, and the file remains empty.</p>
<p>I&#8217;ve used [[NSFileManager defaultManager] isWritableFileAtPath:locFilePath] to verify if the file exists, and is writable, which it is. I can also see the file in the file system using Finder. It is currently empty.</p>
<p>The array I&#8217;m trying to write is an array of dictionary objects.</p>
<p>Do you know if there&#8217;s a way I can troubleshoot this?</p>
<p>Many thanks,<br />
Stephen C</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Muchow</title>
		<link>http://iPhoneDeveloperTips.com/data-file-management/read-and-write-array-dictionary-and-other-collections-to-files.html/comment-page-1#comment-9684</link>
		<dc:creator>John Muchow</dc:creator>
		<pubDate>Wed, 17 Feb 2010 20:13:52 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=5492#comment-9684</guid>
		<description>Hey Bill,

If I understand your question, yes, if you use mutable classes, I would think you could read into those objects, make changes, then write those same objects back to the system.</description>
		<content:encoded><![CDATA[<p>Hey Bill,</p>
<p>If I understand your question, yes, if you use mutable classes, I would think you could read into those objects, make changes, then write those same objects back to the system.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://iPhoneDeveloperTips.com/data-file-management/read-and-write-array-dictionary-and-other-collections-to-files.html/comment-page-1#comment-9683</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Wed, 17 Feb 2010 20:10:16 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=5492#comment-9683</guid>
		<description>Interesting, I was going to play with something similar in the next couple of weeks.

Q: If I now want to update the Array or Dictionary, would I instead use Mutable objects and simply call &quot;writeToFile: xxxxxPath atomically:YES&quot; (where xxxxx is array or dict)?

Thanks.</description>
		<content:encoded><![CDATA[<p>Interesting, I was going to play with something similar in the next couple of weeks.</p>
<p>Q: If I now want to update the Array or Dictionary, would I instead use Mutable objects and simply call &#8220;writeToFile: xxxxxPath atomically:YES&#8221; (where xxxxx is array or dict)?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
