<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'How to create a file in a certain directory in windows?' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'How to create a file in a certain directory in windows?' posted on the 'Beginner C/C++' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2012 Programmers Heaven</copyright>
    <pubDate>Wed, 23 May 2012 13:17:38 -0700</pubDate>
    <lastBuildDate>Wed, 23 May 2012 13:17:38 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>How to create a file in a certain directory in windows?</title>
      <link>http://www.programmersheaven.com/mb/beginnercpp/410469/410469/how-to-create-a-file-in-a-certain-directory-in-windows/</link>
      <description>&lt;pre class="sourcecode"&gt;#include &amp;lt;iostream&amp;gt;
#include &amp;lt;fstream&amp;gt;
using namespace std;

int main () {
    
  ofstream outfile ("c:\windows\system32\test.txt");
  
  if (outfile)
  {
              cout &amp;lt;&amp;lt; "it works";
  }
  


  cin.get();
  return 0;
}
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Well, I am trying to create a file in the c:\windows\system32 path. I have googled and it basically told me to do this, but it doesn't seem to be working. I have UAC disabled. I am running windows 7 Ultimate 64-bit.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/beginnercpp/410469/410469/how-to-create-a-file-in-a-certain-directory-in-windows/</guid>
      <pubDate>Mon, 07 Dec 2009 14:05:24 -0700</pubDate>
      <category>Beginner C/C++</category>
    </item>
    <item>
      <title>Re: How to create a file in a certain directory in windows?</title>
      <link>http://www.programmersheaven.com/mb/beginnercpp/410469/410475/re-how-to-create-a-file-in-a-certain-directory-in-windows/#410475</link>
      <description>\t is the tab character. Try this instead:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
ofstream outfile ("c:\\windows\\system32\\test.txt");
&lt;/pre&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/beginnercpp/410469/410475/re-how-to-create-a-file-in-a-certain-directory-in-windows/#410475</guid>
      <pubDate>Mon, 07 Dec 2009 20:33:29 -0700</pubDate>
      <category>Beginner C/C++</category>
    </item>
  </channel>
</rss>
