One of the methods of saving ".txt" file into the TDMS is described in the
Write .txt file to TDMS Community example.
It is also possible to read the ".wfr" waveform file in LabVIEW and convert it to TDMS file using
Write to Measurement File.vi. The Block diagram and the settings are brought in the picture below.