in reply to Getting path from file

Your paths are being truncated and you say "The GenerateTestFileList() function is used to generate the path to the various files ..."

I'd say we need to see the code for GenerateTestFileList()...