stat prints  & store to file