fstream doesn't read the input
<p>Somehow fstream doesn't read my input from a file.</p>

<pre><code>int main()
{
    ifstream fin("duomenys.txt");
    ofstream fout("rezultatas.txt");

    int n = 0;
    fin &gt;&gt; n;
    cout &lt;&lt; n &lt;&lt; endl;

    fout.close();
    fin.close();

    return 0;
}
</code></pre>

<p>duomenys.txt</p>

<blockquote>
  <p>24</p>
</blockquote>

<p>The output here is 0. I can't figure out why this doesn't work..</p>
