function dates = readdates(filename)

dates = [];
fid = fopen(filename,'r');
while 1
    tline = fgetl(fid);
    if ~ischar(tline), break, end
    dates = [dates; tline];
end;
fclose(fid);