adding the temp directory as a prameter to FileData.  Test modified accordingly