inserting to flat file