clear 

ctdData(1,:) = {sprintf('ctdID\tDateTime\tComment\tDepth_dBar\tTemperature_degC\tSalinity_PPT')};
dt = datetime;
ctdData(2,:) = {sprintf('ctdID\t%s\tLine1\t110.1\t21.2\t15.3', datestr(datetime))};
ctdData(3,:) = {sprintf('ctdID\t%s\tLine2\t120.11\t22.2\t15.4', datestr(datetime + 1))};
ctdData(4,:) = {sprintf('ctdID\t%s\tLine3\t130.122\t23.2\t15.5', datestr(datetime + 2))};
ctdData(5,:) = {sprintf('ctdID\t%s\tLine4\t140.1333\t24.2\t15.6', datestr(datetime + 3))};
ctdData(6,:) = {sprintf('ctdID\t%s\tLine5\t150.14444\t25.2\t15.7', datestr(datetime + 4))};

ctdData

writecell(ctdData);

tableFromFile = readtable('ctdData.txt')
tableFromCell = table(ctdData);