I'm trying to use the fstream to parse a text file. I've looked at sample code and the compiler (I'm using MS VS 2008) is fine. But I have a feeling it's not even reading the file I'm wanting it to (it's a simple text file).
using namespace std;
file_length = asm_code.tellg();
buffer = new char[file_length];
Basically file_length isn't getting the length of the text file, which is what I want. I've made sure that the file name is right and the file itself is in the same directory as the executable (<project>/debug). Or if there's a way of copying the contents of the text file without knowing its length, that'd be fine.
On a personal note, I want to go back to C#