<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: IOException when trying to read a file using File.ReadAllBytes function</title>
	<atom:link href="http://blog.somecreativity.com/2008/04/04/ioexception-when-trying-to-read-a-file-using-filereadallbytes-function/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.somecreativity.com/2008/04/04/ioexception-when-trying-to-read-a-file-using-filereadallbytes-function/</link>
	<description>Weblog of Siddharth Uppal</description>
	<lastBuildDate>Wed, 25 Jan 2012 11:37:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: DongRaeGu</title>
		<link>http://blog.somecreativity.com/2008/04/04/ioexception-when-trying-to-read-a-file-using-filereadallbytes-function/#comment-5180</link>
		<dc:creator><![CDATA[DongRaeGu]]></dc:creator>
		<pubDate>Mon, 25 Jul 2011 02:01:25 +0000</pubDate>
		<guid isPermaLink="false">http://siddhu.wordpress.com/?p=465#comment-5180</guid>
		<description><![CDATA[Thanks works fine.

What is the exact reason ReadWrite access is needed though, even though you just want to read?]]></description>
		<content:encoded><![CDATA[<p>Thanks works fine.</p>
<p>What is the exact reason ReadWrite access is needed though, even though you just want to read?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Floooo49</title>
		<link>http://blog.somecreativity.com/2008/04/04/ioexception-when-trying-to-read-a-file-using-filereadallbytes-function/#comment-5172</link>
		<dc:creator><![CDATA[Floooo49]]></dc:creator>
		<pubDate>Fri, 06 May 2011 12:45:55 +0000</pubDate>
		<guid isPermaLink="false">http://siddhu.wordpress.com/?p=465#comment-5172</guid>
		<description><![CDATA[Very helpful thanks :)]]></description>
		<content:encoded><![CDATA[<p>Very helpful thanks <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricardo</title>
		<link>http://blog.somecreativity.com/2008/04/04/ioexception-when-trying-to-read-a-file-using-filereadallbytes-function/#comment-4772</link>
		<dc:creator><![CDATA[Ricardo]]></dc:creator>
		<pubDate>Wed, 19 Aug 2009 15:31:59 +0000</pubDate>
		<guid isPermaLink="false">http://siddhu.wordpress.com/?p=465#comment-4772</guid>
		<description><![CDATA[Thanks for the snippet. Works like a charm ;)]]></description>
		<content:encoded><![CDATA[<p>Thanks for the snippet. Works like a charm <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Korayem</title>
		<link>http://blog.somecreativity.com/2008/04/04/ioexception-when-trying-to-read-a-file-using-filereadallbytes-function/#comment-4724</link>
		<dc:creator><![CDATA[Korayem]]></dc:creator>
		<pubDate>Fri, 07 Nov 2008 23:28:41 +0000</pubDate>
		<guid isPermaLink="false">http://siddhu.wordpress.com/?p=465#comment-4724</guid>
		<description><![CDATA[Man, thank you for sharing this snippet.

I am developing a VSTO addin that uploads the current open file. It required the built-in File.ReadAllBytes() which obviously threw an error as File.ReadAllBytes() attempts to close the file after reading it&#039;s contents.

Now I am using YOUR method which works flawlessly.

PS: I shared your method as an alternative solution to the proposed ones here:
http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/84f1ac3f-f078-4087-a627-351d6bb57173/]]></description>
		<content:encoded><![CDATA[<p>Man, thank you for sharing this snippet.</p>
<p>I am developing a VSTO addin that uploads the current open file. It required the built-in File.ReadAllBytes() which obviously threw an error as File.ReadAllBytes() attempts to close the file after reading it&#8217;s contents.</p>
<p>Now I am using YOUR method which works flawlessly.</p>
<p>PS: I shared your method as an alternative solution to the proposed ones here:<br />
<a href="http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/84f1ac3f-f078-4087-a627-351d6bb57173/" rel="nofollow">http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/84f1ac3f-f078-4087-a627-351d6bb57173/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rulas</title>
		<link>http://blog.somecreativity.com/2008/04/04/ioexception-when-trying-to-read-a-file-using-filereadallbytes-function/#comment-4703</link>
		<dc:creator><![CDATA[Rulas]]></dc:creator>
		<pubDate>Tue, 26 Aug 2008 15:20:03 +0000</pubDate>
		<guid isPermaLink="false">http://siddhu.wordpress.com/?p=465#comment-4703</guid>
		<description><![CDATA[Nice try with reflector, but what if you try to close your stream at the end of your method, something like this:

fs.Close()

Hope this help]]></description>
		<content:encoded><![CDATA[<p>Nice try with reflector, but what if you try to close your stream at the end of your method, something like this:</p>
<p>fs.Close()</p>
<p>Hope this help</p>
]]></content:encoded>
	</item>
</channel>
</rss>

