write(6,*)'statement' is now fprintf('statement\n')