Re: Working with ini files
"Linas Jakucionis" <[email protected]> Tue, 31 Aug 2004 14:05:02 -0000
| Newsgroups | gmane.comp.lang.delphi.kylix |
|---|---|
| Message-ID | <[email protected]> |
Hi,
just be sure to call the following when you are finished with working
with file.
ini.UpdateFile;
ini.Free();
Actually this is the method I am using myself.
// free ini file
// return true if this operation was performed correctly
// return false otherwise
function freeIniFile(ini : TIniFile; updateBeforeWrite : Boolean) :
Boolean;
begin
Result := True;
try
if updateBeforeWrite then ini.UpdateFile;
ini.Free();
except on EFCreateError do
begin
frmMain.memLog.Append(
'Ini file ''' + ini.FileName + ''' could not be written');
Result := False;
end
end;
end;
--- In [email protected], "flashjobs" <flashjobs@y...> wrote:
> Anybody know how to create ini files in
> Kylix ,
> I used TiniFile.Create('xyx.ini') function
> ,it works
> with out showing any error ,but no ini file
> is created.
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/i7folB/TM
--------------------------------------------------------------------~->
-------------------------------------------------------
Forum / mailing list for Borland Kylix programmers
Our web page: http://groups.yahoo.com/group/kylixgroup
To join the forum: [email protected]
To unsubscribe: [email protected]
To post your messages: [email protected]
To contact the moderator: [email protected]
-------------------------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/KylixGroup/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/