Moved all file error messages to the global array rather than un function text
Merge pull request #2847 from exussum12/errorMsg

Moved all error messages to global array