function DataStart(filename)
%DATASTART Create new txt file that allow matlab to read in table properly
%Improve this function to add the metadata as well

Str = fileread(filename); % read in entire txt file
iistart = strfind(Str,'SampNum'); % find 'SampNum' instances
ii = iistart(1); % first instance is where column headers begin.
Str2 = Str(ii:end); % this char vector can be read correctly by matlab
newfile = 'datafile.txt'; % Specify the file name
fid = fopen(newfile, 'w'); % Open the file for writing
fprintf(fid, '%s', Str2); % Write the character vector to the file
fclose(fid); % Close the file (important)
end

