Archive: Using the INI File Read commands


Using the INI File Read commands
Hello all

Just a quick one.... I am dynamically working out which sections of the INI file should be read next.

My Only issue is that i do not know how many entry_name are associated to this section, is there any way retreiving this infomation?

Carl


You will have to write a custom function do do the job.
This would read from the file, and when it comes across a line that starts with a "[", then that is a new section. Then it should count how many lines there are after it till the next line with a "[" at the start. It should also ignore any lines that are just "$\r$\n", because they will be blank lines with no data on them.

I would write you a function, but I do not have any free time at the moment.

-Stu


You can also enumerate INI sections using Windows API.