`np.loadtxt` doesn't actually require you to `open` the file first -- you can just feed it the filename string.