Trying to read/write from a file located only in the virutal store. Having trouble loading the file in using
outputFile.open("%localappdata%\virtualstore\Program Files (x86)\AGC\test.txt");
outputFile.open("%localappdata%\\virtualstore\\Program Files (x86)\\AGC\\test.txt");
Although I can get it to work using:
inputFile.open("C:\\Users\\Newlance\\AppData\\Local\\VirtualStore\\Program Files (x86)\\AGC\\settingsV5.cfg");
But I need it to work on other machines IE: Not Newlance. Any help would be appreciated!
Last edited on
I suppose you could use `getenv()'