I am writing to a text file which is going to be part of a
larger vi. I want to write it just one time while the program is running not all
the time I have a it so I can turn on and off when I want to write it to a file
but once I turn it on I cant get it to stop after it writes to the file once