I’m almost finshed creating a mixer. i want to save the settings for each of the channels at close then read from the temp file when the program is reopened so it opens with the last settings.
I’m totaly unfamiliar with the file classes can any one give me suggestions on how to acompish this?
I know that this class wasnt intented for big values. i have about 16 double values 17 bool values and 11 string values do you think this is with in the limits of this class?
Also i saw thats this class is intended to write to the file shortly after a paramater is changed. i’d rather just take a snap shot of the settings as the program is closed is it possable to do this is i set the millisecondsBeforeSaving to -1?
the code below seems to work fine. It creates a file in the same directory as the executable after the application is shut down.
a problem i’m having is i need to check to see if the file exist on the harddrive so i can initialize some settings. problem is when i try to check using “TempStateFile->exsistsasfile()” it allways evaluates true even if the file hasn’t actualy been written to the harddrive yet
anyone have any suggestions?
TempStateFile = new File(File::getCurrentApplicationFile());
TempStateFile->setAsCurrentWorkingDirectory();
saveSet = new PropertiesFile(TempStateFile->withFileExtension(T(“mxt”)), 0 , false,false);[/code]