do while file set up