I am not familiar with the Ini_WriteToFile function. If it is a CVI function, you might try posting this question to the CVI forum. Otherwise, the Windows Platform SDK provides functions
GetPrivateProfile... and
WritePrivateProfile... for dealing with INI files. Documentation on this set of functions is available in
MSDN.
Tony
NI - MeasurementStudio