It seems to be that you put the file in a different directory from where the code is running or that the name of the file is not exactly "m2.txt". If you put the file in side of its own folder in the correct directory you would have to enter the name as "FolderName\m2.txt" where "FolderName" is the name of the folder you put the file in.