T
Trey
I can't believe that Dot.Net has no easy to use INI file replacement.
In Delphi you set up a class to read/write data from by using this
statement.
theINI := TIniFile.Create(filename);
To read from it you do something like:
frmMain.top := theINI.ReadInteger('INIT','Top',50);
frmMain.left := theINI.ReadInteger('INIT','Left',50);
and to write:
theINI.WriteInteger('INIT','Top',frmMain.Top);
theINI.WriteInteger('INIT','Left',frmMain.Left);
Pretty simple huh?
Am I missing something?
In Delphi you set up a class to read/write data from by using this
statement.
theINI := TIniFile.Create(filename);
To read from it you do something like:
frmMain.top := theINI.ReadInteger('INIT','Top',50);
frmMain.left := theINI.ReadInteger('INIT','Left',50);
and to write:
theINI.WriteInteger('INIT','Top',frmMain.Top);
theINI.WriteInteger('INIT','Left',frmMain.Left);
Pretty simple huh?
Am I missing something?