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

strings = readlines('CPF003001VerA.txt');

sortedLines = [];
sortedLinesTable = [];
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:end,:),'VariableNames',strArr(1,:));
end