clear; clc;

f = fopen('data2.txt');

while ~feof(f)
    disp(fgetl(f));
end

fclose(f);