Write file id