Left(string,~) is your friend.

It reads all but the last character (work's with right too to get all but the first character).

In this instance it removes the trailing chr(10) from the readprofile string prior to being Splitted.
It effectively stops a blank entry being created in the resulting array. it's much easier to code than left(string,(len(string)-1))
_________________________
Every day is a school day