create and edit file