Take the 2-minute tour ×  Usually, with Windows, I save my
application's data in the user folder (%appdata%).  For that, I
use the function ExpandEnvironmentStrings which is linked to
Windows to get the folder I need, and I store inside a subfolder
my inifile.  Is there any best pratice to manage that and be
compliant with all the supported platforms (Windows 32b, 64b &
Mac)?  I successfully tested like that:  procedure
TfrmMain.SaveSettings;   fnINI: TFileName;   ini  : TIniFile;
fnINI := IncludeTrailingPathDelimiter(GetHomePath) +
IncludeTrailingPathDelimiter(APP_NAME) + ChangeFileExt(APP_NAME,
'.ini');   if ForceDirectories(ExtractFilePath(fnINI)) then
ini := TIniFile.Create(fnINI);
ini.WriteString(INI_CONNECTION, INI_IP, edtIP.Text);  Thank you
Linas!  share|improve this question Please move your findings to
an answer of their own rather than editing your question. That
way people can vote on the answer and question separately. – 
LachlanG Sep 17 '11 at 0:50 @LachlanG: In this case I disagree.