Write input to text file, line by line. Quits on 'q'