Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2000-09

Bug inifile only on WIN32

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

PLANAS Jean-Pierre

Hello

This code bugs with fpc for WIN32 (but works well for GO32V2). This code adds lines with the '=' char...

Jean-Pierre

-------------------------------------------------
Uses Inifiles;
Var Ini:TInifile;
Begin
Ini := TIniFile.Create('s.ini');
Ini.WriteInteger('Section1','foo',400);
Ini.WriteInteger('Section2','bar',400);
Ini.Free;
End.

Reply by email

Michael Van Canneyt
to PLANAS Jean-Pierre
PLANAS Jean-Pierre wrote
Hello This code bugs with fpc for WIN32 (but works well for GO32V2). This code adds lines with the '=' char...

It works fine with the latest version of the fixbranch:

P:/pp/fixbranch/fcl/win32 >cat s.ini
[Section1]
foo=400

[Section2]
bar=400
P:/pp/fixbranch/fcl/win32 >

The inifiles code is independent of the platform, so I find it hard to understand what could cause this.

Michael.

Reply by email