I'm pretty new to programming, so sorry if this comes across as stupid, but hey... I looked around for a solution before posting here like a good newb, but found none. :(
I'm trying to compile this simple bit of code in MSVC++ 2008 but it comes up with errors saying 'ofstream' and 'file' are undeclared identifiers. S: Where am I going wrong?/What am I missing? I tried to compile several examples from other sites and tutorials and they all come up with similar errors.