clc;
clear 
id = ["flbbSetup" "anchorPt"  "ascendPt" "parkPt" "surfacePt" ...
      "ctdCPBins" "ctdCPData" "gps" "timeOffset" "deanchorDetails"];

strings = readlines('CPF003001VerA.txt');

sortedLines = [];
sortedLinesTable = [];
t = [];
for i=1:length(id)
    indexes = startsWith(strings(:), id(i), 'IgnoreCase', true);
    sortedLines.(id(i)) = split(strings(indexes));
    strArr = sortedLines.(id(i));
    sortedLinesTable.(strcat(id(i),'_Table')) = array2table(strArr(2,:),'VariableNames',strArr(1,:));
    t.(id(i)) = table(strArr);
end