<?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: How to use Temporary Files in C#</title>
	<atom:link href="http://www.daveoncsharp.com/2009/09/how-to-use-temporary-files-in-csharp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.daveoncsharp.com/2009/09/how-to-use-temporary-files-in-csharp/</link>
	<description>C# Programming Tutorials</description>
	<lastBuildDate>Thu, 26 Jan 2012 22:31:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Rakesh Chandra G</title>
		<link>http://www.daveoncsharp.com/2009/09/how-to-use-temporary-files-in-csharp/#comment-18295</link>
		<dc:creator>Rakesh Chandra G</dc:creator>
		<pubDate>Fri, 20 Jan 2012 14:55:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.daveoncsharp.com/?p=1427#comment-18295</guid>
		<description>Hi Dave... Nice article. I have a doubt. I have converted excel (.xls/.xlsx) to .csv files. According to my requirement, I should not store that .csv file in the client place. But I need to read the data from the csv file, which I have converted .So, is there any concept like in-memory to store it and read the data from that file....? Please let me know, if my question is not clear.</description>
		<content:encoded><![CDATA[<p>Hi Dave&#8230; Nice article. I have a doubt. I have converted excel (.xls/.xlsx) to .csv files. According to my requirement, I should not store that .csv file in the client place. But I need to read the data from the csv file, which I have converted .So, is there any concept like in-memory to store it and read the data from that file&#8230;.? Please let me know, if my question is not clear.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terrell</title>
		<link>http://www.daveoncsharp.com/2009/09/how-to-use-temporary-files-in-csharp/#comment-18285</link>
		<dc:creator>Terrell</dc:creator>
		<pubDate>Thu, 08 Dec 2011 03:54:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.daveoncsharp.com/?p=1427#comment-18285</guid>
		<description>Dave thanks for going over using temporary files. This article and your other one about multi-threading really helped me out. Great blog.</description>
		<content:encoded><![CDATA[<p>Dave thanks for going over using temporary files. This article and your other one about multi-threading really helped me out. Great blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ilija Injac</title>
		<link>http://www.daveoncsharp.com/2009/09/how-to-use-temporary-files-in-csharp/#comment-18270</link>
		<dc:creator>Ilija Injac</dc:creator>
		<pubDate>Wed, 19 Oct 2011 21:38:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.daveoncsharp.com/?p=1427#comment-18270</guid>
		<description>Hi Dave, thank you for this insights about temporary files under .Net. I will integrate your code into my current project on codeplex (credits). Thx.</description>
		<content:encoded><![CDATA[<p>Hi Dave, thank you for this insights about temporary files under .Net. I will integrate your code into my current project on codeplex (credits). Thx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.daveoncsharp.com/2009/09/how-to-use-temporary-files-in-csharp/#comment-18254</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Mon, 15 Aug 2011 23:55:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.daveoncsharp.com/?p=1427#comment-18254</guid>
		<description>As far as I know, Windows doesn&#039;t automatically delete temp files unless the user schedules a cleanup job. However, you can set the file to be automatically deleted once your FileStream object goes out of scope. You can do this by using the FileOptions.DeleteOnClose flag.

using (FileStream fs = File.Create(Path.GetTempFileName(), Int16.MaxValue, FileOptions.DeleteOnClose))
{
    // Use temp file
}</description>
		<content:encoded><![CDATA[<p>As far as I know, Windows doesn&#8217;t automatically delete temp files unless the user schedules a cleanup job. However, you can set the file to be automatically deleted once your FileStream object goes out of scope. You can do this by using the FileOptions.DeleteOnClose flag.</p>
<p>using (FileStream fs = File.Create(Path.GetTempFileName(), Int16.MaxValue, FileOptions.DeleteOnClose))<br />
{<br />
    // Use temp file<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TBossAZ</title>
		<link>http://www.daveoncsharp.com/2009/09/how-to-use-temporary-files-in-csharp/#comment-18253</link>
		<dc:creator>TBossAZ</dc:creator>
		<pubDate>Mon, 15 Aug 2011 19:10:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.daveoncsharp.com/?p=1427#comment-18253</guid>
		<description>When you create a temporary file, should it not be automatically deleted when the computer is restarted?</description>
		<content:encoded><![CDATA[<p>When you create a temporary file, should it not be automatically deleted when the computer is restarted?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

