Issues with writing output to file in C++
<p>I am writing to a file in C++ in append mode, the program which I am using for the same is:</p>

<pre><code>#include &lt;fstream&gt;
void main()
{
 ofstream f;
 f.open("f.txt", ios::app);
 f&lt;&lt;"\n Hello";
 f.close();
}
</code></pre>

<p>Now the output which is getting printed in the output file is some thing junk...which I can't comprehend:</p>

<pre><code>  OUTPUT:
  牐湩㩴
</code></pre>

<p>Please help me as to where am i going wrong???
I am working on linux.</p>
