<?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: 13.6 &#8212; Basic file I/O</title>
	<atom:link href="http://www.learncpp.com/cpp-tutorial/136-basic-file-io/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learncpp.com/cpp-tutorial/136-basic-file-io/</link>
	<description></description>
	<lastBuildDate>Thu, 09 Sep 2010 12:59:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Coderdude</title>
		<link>http://www.learncpp.com/cpp-tutorial/136-basic-file-io/comment-page-1/#comment-82810</link>
		<dc:creator>Coderdude</dc:creator>
		<pubDate>Tue, 13 Apr 2010 03:05:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=194#comment-82810</guid>
		<description>Hmm... I&#039;m wondering if you can make the program so that the user can write to the file? Like, something with cin. Is it possible? It probably is, and has an easy explanation, but I just want to know if it is possible, and how to write the program to do this if it is possible. Thanks!!</description>
		<content:encoded><![CDATA[<p>Hmm&#8230; I&#8217;m wondering if you can make the program so that the user can write to the file? Like, something with cin. Is it possible? It probably is, and has an easy explanation, but I just want to know if it is possible, and how to write the program to do this if it is possible. Thanks!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alex</title>
		<link>http://www.learncpp.com/cpp-tutorial/136-basic-file-io/comment-page-1/#comment-65360</link>
		<dc:creator>alex</dc:creator>
		<pubDate>Fri, 31 Jul 2009 12:43:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=194#comment-65360</guid>
		<description>Ignore my previous comment, I had overlooked the explanation below (use double backslashes):
“c:\\test\\abc.txt”

This worked for me.</description>
		<content:encoded><![CDATA[<p>Ignore my previous comment, I had overlooked the explanation below (use double backslashes):<br />
“c:\\test\\abc.txt”</p>
<p>This worked for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alex</title>
		<link>http://www.learncpp.com/cpp-tutorial/136-basic-file-io/comment-page-1/#comment-65355</link>
		<dc:creator>alex</dc:creator>
		<pubDate>Fri, 31 Jul 2009 11:49:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=194#comment-65355</guid>
		<description>I tried adding the complete path and filename, but it still outputs the file in the projects folder.
Is there a way to actually output the file where you want? It can&#039;t be that difficult...
Thanx</description>
		<content:encoded><![CDATA[<p>I tried adding the complete path and filename, but it still outputs the file in the projects folder.<br />
Is there a way to actually output the file where you want? It can&#8217;t be that difficult&#8230;<br />
Thanx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chandrakant</title>
		<link>http://www.learncpp.com/cpp-tutorial/136-basic-file-io/comment-page-1/#comment-60181</link>
		<dc:creator>Chandrakant</dc:creator>
		<pubDate>Thu, 07 May 2009 10:33:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=194#comment-60181</guid>
		<description>if you given complete file path using single slash separator like &quot;c:\test\abc.txt&quot;  try with double slash separator like &quot;c:\\test\\abc.txt&quot;</description>
		<content:encoded><![CDATA[<p>if you given complete file path using single slash separator like &#8220;c:\test\abc.txt&#8221;  try with double slash separator like &#8220;c:\\test\\abc.txt&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.learncpp.com/cpp-tutorial/136-basic-file-io/comment-page-1/#comment-59722</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sat, 02 May 2009 03:27:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=194#comment-59722</guid>
		<description>I do read all the comments (eventually).  I don&#039;t know why it wouldn&#039;t be outputting a file.  Perhaps you don&#039;t have permission to create files in the output directory?  Seems unlikely though.  You might do a google search on ofstream() and see if you can find reasons that it might fail.  I can&#039;t think of any other obvious reasons.</description>
		<content:encoded><![CDATA[<p>I do read all the comments (eventually).  I don&#8217;t know why it wouldn&#8217;t be outputting a file.  Perhaps you don&#8217;t have permission to create files in the output directory?  Seems unlikely though.  You might do a google search on ofstream() and see if you can find reasons that it might fail.  I can&#8217;t think of any other obvious reasons.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.learncpp.com/cpp-tutorial/136-basic-file-io/comment-page-1/#comment-59721</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sat, 02 May 2009 03:25:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=194#comment-59721</guid>
		<description>I believe instead of specifying just a filename, you can specify a path and a filename.  I&#039;m not sure which directory corresponds to the windows desktop, but there is one somewhere on your hard drive...</description>
		<content:encoded><![CDATA[<p>I believe instead of specifying just a filename, you can specify a path and a filename.  I&#8217;m not sure which directory corresponds to the windows desktop, but there is one somewhere on your hard drive&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mountaingod</title>
		<link>http://www.learncpp.com/cpp-tutorial/136-basic-file-io/comment-page-1/#comment-56186</link>
		<dc:creator>Mountaingod</dc:creator>
		<pubDate>Sun, 05 Apr 2009 20:07:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=194#comment-56186</guid>
		<description>I don&#039;t know if anybody checks these for comments, but outputting to text files doesn&#039;t work for me in Visual C++ 2008 :(

I&#039;ve copy-pasted your output example exactly. The program compiles &amp; runs, but no text file results. What&#039;s happening?</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know if anybody checks these for comments, but outputting to text files doesn&#8217;t work for me in Visual C++ 2008 :(</p>
<p>I&#8217;ve copy-pasted your output example exactly. The program compiles &amp; runs, but no text file results. What&#8217;s happening?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Unknown</title>
		<link>http://www.learncpp.com/cpp-tutorial/136-basic-file-io/comment-page-1/#comment-51409</link>
		<dc:creator>Unknown</dc:creator>
		<pubDate>Wed, 18 Mar 2009 03:05:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=194#comment-51409</guid>
		<description>Very nice... I can do a lot with this stuff. :)
By the way Alex :
Is there any way to change where to save the files that we make with ofstream? for example- I want to save my Sample.dat to desktop.
Thanks</description>
		<content:encoded><![CDATA[<p>Very nice&#8230; I can do a lot with this stuff. :)<br />
By the way Alex :<br />
Is there any way to change where to save the files that we make with ofstream? for example- I want to save my Sample.dat to desktop.<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learn C++ - &#187; 13.7 &#8212; Random file I/O</title>
		<link>http://www.learncpp.com/cpp-tutorial/136-basic-file-io/comment-page-1/#comment-27040</link>
		<dc:creator>Learn C++ - &#187; 13.7 &#8212; Random file I/O</dc:creator>
		<pubDate>Thu, 11 Sep 2008 07:19:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=194#comment-27040</guid>
		<description>[...] 2007      Prev/Next Posts   &#171; 13.6 &#8212; Basic file I/O &#124; Home &#124; 14.1 &#8212; Function templates &#187;     Friday, April 4th, 2008 at 10:04 [...]</description>
		<content:encoded><![CDATA[<p>[...] 2007      Prev/Next Posts   &laquo; 13.6 &#8212; Basic file I/O | Home | 14.1 &#8212; Function templates &raquo;     Friday, April 4th, 2008 at 10:04 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learn C++ - &#187; 13.5 &#8212; Stream states and input validation</title>
		<link>http://www.learncpp.com/cpp-tutorial/136-basic-file-io/comment-page-1/#comment-14438</link>
		<dc:creator>Learn C++ - &#187; 13.5 &#8212; Stream states and input validation</dc:creator>
		<pubDate>Mon, 05 May 2008 02:33:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=194#comment-14438</guid>
		<description>[...]  13.6 â€” Basic file I/O [...]</description>
		<content:encoded><![CDATA[<p>[...]  13.6 â€” Basic file I/O [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
