Output plan to text file