<?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: Remember to properly close the File!</title>
	<atom:link href="http://www.javablogging.com/remember-to-properly-close-the-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.javablogging.com/remember-to-properly-close-the-file/</link>
	<description>Tracking surprises, features and bugs</description>
	<lastBuildDate>Sun, 05 Feb 2012 15:43:49 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Tanzy</title>
		<link>http://www.javablogging.com/remember-to-properly-close-the-file/comment-page-1/#comment-487</link>
		<dc:creator>Tanzy</dc:creator>
		<pubDate>Tue, 29 Sep 2009 13:52:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.javablogging.com/?p=83#comment-487</guid>
		<description>Good catch.
This way we can enhance the readabilty of the code and good exception handling as well.

Thanks for the post.</description>
		<content:encoded><![CDATA[<p>Good catch.<br />
This way we can enhance the readabilty of the code and good exception handling as well.</p>
<p>Thanks for the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran</title>
		<link>http://www.javablogging.com/remember-to-properly-close-the-file/comment-page-1/#comment-57</link>
		<dc:creator>Imran</dc:creator>
		<pubDate>Wed, 22 Jul 2009 11:43:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.javablogging.com/?p=83#comment-57</guid>
		<description>Good explantion dude....!
Thanks
JavaImran</description>
		<content:encoded><![CDATA[<p>Good explantion dude&#8230;.!<br />
Thanks<br />
JavaImran</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Juurlink</title>
		<link>http://www.javablogging.com/remember-to-properly-close-the-file/comment-page-1/#comment-17</link>
		<dc:creator>Rob Juurlink</dc:creator>
		<pubDate>Mon, 29 Jun 2009 22:18:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.javablogging.com/?p=83#comment-17</guid>
		<description>I prefer to write a simple utility method that closes a closable stream ignoring nulls and exceptions. See also Apaches IOUtils. 

FileWriter writer = null;
try {
    writer = new FileWriter(fileName);
    performWriteToFile(writer, content);
} catch (IOException e) {
  // Log the exception
} finally {
    closeQuietly(writer);
}</description>
		<content:encoded><![CDATA[<p>I prefer to write a simple utility method that closes a closable stream ignoring nulls and exceptions. See also Apaches IOUtils. </p>
<p>FileWriter writer = null;<br />
try {<br />
    writer = new FileWriter(fileName);<br />
    performWriteToFile(writer, content);<br />
} catch (IOException e) {<br />
  // Log the exception<br />
} finally {<br />
    closeQuietly(writer);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anon</title>
		<link>http://www.javablogging.com/remember-to-properly-close-the-file/comment-page-1/#comment-16</link>
		<dc:creator>anon</dc:creator>
		<pubDate>Mon, 29 Jun 2009 21:10:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.javablogging.com/?p=83#comment-16</guid>
		<description>try C#&#039;s &quot;using&quot; statement ;)</description>
		<content:encoded><![CDATA[<p>try C#&#8217;s &#8220;using&#8221; statement <img src='http://www.javablogging.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

