Please can someone help me out on an issue that I ma having with delphi.
Aim is to read an INI file then take certain values only and display them under listbox or memo.
Lets say for an example my ini files looks like this
Only values I want to read is device, sector and anyname without the ‘=’
I tried with TIniFile and text, what I am getting stuck is how to identify the [setup], [set] and the ‘=’ to ignore and take the next value.
When the files is read it is at the EOF, am I correct!! If this is the case I need to decrement it to the start of the page, then create a condition to compare [setup] , [set] and the =. Then with the condition true, I need to increment by 1 (or delete the char or the string).
My question to you is, how do I decrement and inc, as I get an error with int and string.
Is this the correct approach, or do you recommend a different approach (maybe read the file as a string) as they increment compare the char then remove
Thx in adv