This function is used to get the save path from the file named origin.ini in user folder or system folder. All groups can be seen in the list conctrol of Preference|Options|File Locations Group Column.
string get_file_group_default_path( LPCSTR lpcszFileGroup, bool bSavePath = true )
Return the save path if the ini file and the file group name are all existing.
Or it will return a void string and report an error.
EX1
//Assume that the save path of ascii file group is "D:\Program Files\OriginLab\OriginPro8\Originlab\" setting in Preference|Options|File Locations void test_get_file_group_default_path() { string strSavePath; strSavePath = get_file_group_default_path("ascii");//can also be "ASCII" //--> strSavePath = "D:\Program Files\OriginLab\OriginPro8\Originlab\" }
origin.h