Added the function ReadUntil to read from a stream into a string until a
delimiter character