Alot thanks to dotnetperls.com for their code on reading text from a text file.