Md_file.cpp: Reduction of the code of openFile()