Write information to file