I have made a program that stores a file like this:
ofstream out; out.open("C:\\reg.txt");
This file is used everytime a program starts in order to find if the encrypted password is correct within this file.
This works without any problem on my computer, using XP Proffessional and where I know that I have a C:\\ path.
The big question for me now is, that I need to make this portable for the systems below as much as possible.
The problem is that you can never know if the current computer that run the program has a C:\\, F:\\, R:\\, O:\\ and so on...
This is unknown information as I understand.
So my question is how I will solve something like this so it also will work for the systems below wich also could use different paths ?
XP Home Edition
Windows server 2003