clear; clc;

f = fopen('data1.txt');

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

fclose(f);