Itdaddy, I may be missing something, but won't it be easier to just use readprofilestring as earlier suggested instead of reading the entire file into an array?