class function TShrinkConfig.MyVersion: WORD;
var
ini: TIniFile;
begin
ini := TIniFile.Create(gsIniFile);
Result := ini.ReadInteger(
SHRINK_INI_SETUP_SECTION,
SHRINK_INI_MYVERSION,
SHRINK_INI_VERSION_1);
ini.Free;
end;
if (not ini.ValueExists(SHRINK_INI_VERSIONS_SECTION, IntToStr(version))) then
....
I searched online that TiniFile corresponds to FileStream in C#.
But i am not able to understand and convert it into C#.
Help would be really appreciated.
MOD EDIT: When posting code...USE CODE TAGS!!!
This post has been edited by JackOfAllTrades: 11 November 2010 - 01:55 PM

New Topic/Question
Reply
MultiQuote









|