Could you explain what you mean by "input files into a code"? Are you reading a file into the MATLAB environment with a load statement? Or using a GUI command to get a filename from a user? Or cuting and pasting a source file into a MATLAB script?
Could you give the MATLAB commands, the operating system you are using, and the filename with exact entension.