I have a bit of code that is SUPPOSED to open a file and read a single line from it. That's all fine and dandy. Now, i'd like for the path to be relative to the compiled .exe, which is also fine and dandy, and how I thought the ifstream.open("text.txt"); was supposed to work.
However, if I don't hardcode the path, it refuses to open. IE, I can't put "text.txt" and the program be happy. I have to put C:\\Whatever\\text.txt. Is this how it's supposed to work? Because, that seems weird.
I'm using Bloodshed Dev-C++ 4 with Mingw, btw.