I used GetPrivateProfileSectionNames to retrieve a list of the section names. The only problem is that I now have all the names stored into one char array seperated by \0s. What would be the best/easiest way to split the string up into individual char arrays. Also note that there won't be a set number of section names. Thanks for any help.