Write info to file