title: file writing in vs2010 (c++, win32)
body: <p>I asked this question earlier and you told me to mention the errors, 
  so I will mention them now(I couldn't figure out how to continue the last thread I started,all I saw was an "add a comment" button and an "answer your question" button, so I had to correct the questio and ask it again, sorry about that):</p>
  
  <p>My question is the following:
  I'm using visual studio 2010 and I'm writing a win32 application(not a console application).
  I need to know how to write to a file from this application.</p>
  
  <p>I included these headers: windows.h, stdlib.h, string.h and tchar.h</p>
  
  <p>I wrote a very simple hello world application and it ran just fine.</p>
  
  <p>But when I tried to include iostream and fstream 
  in my project the compiler gave me the following errors.</p>
  
  <pre><code>1&gt;c:\program files (x86)\microsoft visual studio 10.0\vc\include\cstdlib(21): error C2039: 'abort' : is not a member of '`global namespace''
  1&gt;c:\program files (x86)\microsoft visual studio 10.0\vc\include\cstdlib(21): error C2873: 'abort' : symbol cannot be used in a using-declaration
  1&gt;c:\program files (x86)\microsoft visual studio 10.0\vc\include\cstdlib(24): error C2039: 'exit' : is not a member of '`global namespace''
  1&gt;c:\program files (x86)\microsoft visual studio 10.0\vc\include\cstdlib(24): error C2873: 'exit' : symbol cannot be used in a using-declaration
  IntelliSense: the global scope has no "abort"   c:\program files (x86)\microsoft visual studio 10.0\vc\include\cstdlib  21  13  
  IntelliSense: the global scope has no "exit"    c:\program files (x86)\microsoft visual studio 10.0\vc\include\cstdlib  24  13  
  </code></pre>
  
  <p>And when I include fstream.h,I get:</p>
  
  <pre><code>error C1083: Cannot open include file: 'fstream.h': No such file or directory   c:\users\user\documents\visual studio 2010\projects\helloworld\helloworld\main.cpp  5   1   helloworld
  IntelliSense: cannot open source file "fstream.h" c:\users\user\documents\visual studio 2010\projects\helloworld\helloworld\main.cpp    5   1   helloworld
  </code></pre>
  
  <p>Same thing for iostream.h</p>
  
  <p>Why are these errors occurring?</p>