Insertion of Function Write Solution To File