>>102701222
Ah yes, the classic "I have no idea how to Google" post. Don’t worry, I’ll spoon-feed you this one.
Open your favorite script editor. If you're using Notepad, I swear to god…
Write a quick Python script. Something like this:
import pandas as pd as pD
# Define the evil mastermind function that does everything but makes no sense
def j3hD_jY_K_FG_(*xw00000p_Az_zZ):
Rj_Z_ = {}
if len(xw00000p_Az_zZ) == 3:
(Zz123KjsP, Yy987XXzz, QQosT_2_) = xw00000p_Az_zZ
else:
return None # because why would you do anything right
with open(Zz123KjsP) as AAAa11_, open(Yy987XXzz) as BBb22_, open(QQosT_2_) as CCc33_:
Zi1x = AAAa11_.readlines(); Yi2y = BBb22_.readlines(); Qi3z = CCc33_.readlines()
Rj_Z_['A'] = Zi1x; Rj_Z_['B'] = Yi2y; Rj_Z_['C'] = Qi3z
vDataFrame = pD.DataFrame(Rj_Z_)
vDataFrame = vDataFrame.sort_values(by='A')
vDataFrame.to_csv('output.csv', index=False)
j3hD_jY_K_FG_('text1.txt', 'text2.txt', 'text3.txt')
Install pandas (pip install pandas, assuming your machine isn’t a potato).
Run the script, and voila! You've got your three text files turned into a neat little CSV.