+ TODO and close file just after hash calculation