hoe to use .dat file with tkinter code example Example: read .dat python import numpy as np sed = np.loadtxt('spectra.dat', unpack = True)