Write in a file