Read from a .ini in C++
<p>So I am using GetPrivateProfileInt, to read some variables off a .ini file in c++. I am using:</p>

<pre><code>int I_Hate_This = GetPrivateProfileInt("test", "test", 30, "C:\\Users\\JarodAnly\\Documents\\work.ini");
</code></pre>

<p>The .ini file is:</p>

<pre><code>[test]
test=60
</code></pre>

<p>I seem to be constantly getting the output of 30. So could someone let me know where I made my error. Cheers. </p>