Just one more thing about this - it's not a ReadProfileString issue, it's a DATA issue. If you loaded a file - a set of lines - and then split it into an array of lines, you'd have the exact same issue - if the file contained a final line terminator, you'd have an empty final element. The only real difference is that we know that ReadProfileString ALWAYS returns the final line terminator, so we can simply snip it off. When reading a file, we'd need to first check whether the last char was a line terminator and remove it only if it was.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D