Code example using little or no .Net string functions.