How to read lines between two strings.

Hi;

I have a configuration file like this:

[log file directory]
c:\prod\work\log

[file list]
c:\prod\data\ftp\file1.dat
c:\prod\data\ftp\file1.dat
c:\prod\data\ftp\file1.dat
...

[other parms]

I want to, for example, read the file names listed between '[file list]' and '[other parms]' - I'm certain there is an easy way to do this in c++ similar to awk or cut. If anyone has advice or can point me to a good reference I'd greatly appreciate it.
Try the Win32 API's private profile functions.
Topic archived. No new replies allowed.