The only way I know to do this is to schedule the query. Run it as Web/TXT when you are scheduling it. That will create a CSV file -- but I'm not sure if that's what you want.
If you want the text file in a format other than CSV and understand how to write XSL transforms, you can define a transform in PSQuery and specify XFORM instead of TXT as the output format when you schedule the query. A drop down should appear allowing you to specify the transform name.
You can schedule your query to run and select the o/p in csv format. CSV format is same like text format and it opens in every editor as well.
However sometimes there are few limitations which we should consider on why we do not chose rxt/csv format. for this refer below doc.
E-QR: Schedule Query When Ran In Txt (Csv) Format Converts "32E00" To Exponential Form (Doc ID 2426205.1)
Additionally, there are few language constaints exists as well and you should be aware of it while generating TXT or CSV files. Refer this for more details
E-QR: PSQuery Output to TXT or CSV Output Not Rendering in Japanese when Selected (Doc ID 1299190.1)
You may want to consider placing this under the PeopleTools discussion board, if you are not getting the answers you are looking for here. Although I completely agree with the answers that suggest scheduling the query and setting the output to txt
There is not a way to default the PS Query output results to *.txt format. It will be defaulted to CSV Text File, by default with comma delimiter:
CSV Text File: This option is available after you have clicked the HTML link either form Query Manager search page or Query Viewer page. If you click this option,the File Download page appears enabling you to open the file in your browser or save it to disk.
Once, the csv file is generated you might need to save it with *.txt extension.
See below the files generated:
1). Default csv file format generated:
2). Txt file, after Save As:
Let me know if you have any questions,
Thank you for your suggestion to move the thread to the most appropriate space. This will give a better visibility and the question addressed will be under PS Query experts radar.
Someone with Admin/Moderator privileges could take this action.