closed. What if you try to debug using gdb so that you can see exactly where
it fails.
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Unable-to-rewrite-ini-file-which-exists-error-unable-to-create-ini-file-need-to-rewrite-it-tp2680589p2681987.html
Sent
2011/3/15 Peter Williams pewilliams2...@live.com
Hi All,
I use this procedure to save an inifile using the standard IniFiles unit.
The problem I have is that when an .ini file already exists I cannot
overwrite it. I need the TextFiles equivalent of Rewrite() for Inifiles.
This line:
On Tuesday 15 of March 2011 05:25:41 Peter Williams wrote:
Hi All,
I use this procedure to save an inifile using the standard IniFiles unit.
The problem I have is that when an .ini file already exists I cannot
overwrite it. I need the TextFiles equivalent of Rewrite() for Inifiles.
This line:
On 15/03/2011 04:25, Peter Williams wrote:
Hi All,
I use this procedure to save an inifile using the standard IniFiles unit. The
problem I have is that when an .ini file already exists I cannot overwrite
it. I need the TextFiles equivalent of Rewrite() for Inifiles.
This line: ConfigIni
On 3/15/11, Peter Williams pewilliams2...@live.com wrote:
ConfigIni := TIniFile.Create(ChangeFileExt(Application.ExeName,'.ini'));
You really should not do that in most OS's, even on Windows it is
deprecated since win9x.
Most times you will not have write permissions there.
Also under *nix this
Am 15.03.2011 12:45, schrieb Bart:
On 3/15/11, Peter Williamspewilliams2...@live.com wrote:
ConfigIni := TIniFile.Create(ChangeFileExt(Application.ExeName,'.ini'));
You really should not do that in most OS's, even on Windows it is
deprecated since win9x.
Most times you will not have write
Hi Bart,
Date: Tue, 15 Mar 2011 12:45:49 +0100
From: bartjun...@gmail.com
To: lazarus@lists.lazarus.freepascal.org
Subject: Re: [Lazarus] Unable to rewrite .ini file which exists... error
unable to create .ini file. (need to rewrite it).
On 3/15/11, Peter Williams pewilliams2
Sven Barth schrieb:
It took me a while until I understand what you wanted to tell... maybe
you should have mentioned directly that you mean writing in the
application's directory.
While I agree with you that modifyable configuration should be put into
the proper configuration locations I
Am 15.03.2011 15:24, schrieb Peter Williams:
Hi Bart,
Date: Tue, 15 Mar 2011 12:45:49 +0100
From: bartjun...@gmail.com
To: lazarus@lists.lazarus.freepascal.org
Subject: Re: [Lazarus] Unable to rewrite .ini file which exists...
error unable to create .ini file. (need to rewrite
Am 15.03.2011 15:24, schrieb Peter Williams:
Can someone
please give me an example as to how it is called?
Before I forget:
The functions only return a filename, they don't create the file. So you
must do that yourself (you can simply pass the result to TIniFile.Create
for example).
Hi,
From: pewilliams2...@live.com
To: lazarus@lists.lazarus.freepascal.org
Date: Wed, 16 Mar 2011 01:24:46 +1100
Subject: Re: [Lazarus] Unable to rewrite .ini file which exists... error unable
to create .ini file. (need to rewrite it).
Hi Bart,
Date: Tue, 15 Mar 2011 12:45:49 +0100
Am 15.03.2011 15:51, schrieb Peter Williams:
I just tried calling Str1 := GetAppConfigDir(true); ShowMessage(Str1);
and my app is called Color_Life.exe and it returns
C:\ProgramData\Color_Life\. Since the folder C:\ProgramData\ exists
and it's subfolder \Color_Life\ does NOT exist, then does
it fails.
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Unable-to-rewrite-ini-file-which-exists-error-unable-to-create-ini-file-need-to-rewrite-it-tp2680589p2681987.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com
Hi All,
I use this procedure to save an inifile using the standard IniFiles unit. The
problem I have is that when an .ini file already exists I cannot overwrite it.
I need the TextFiles equivalent of Rewrite() for Inifiles.
This line: ConfigIni :=
14 matches
Mail list logo