open(FILE,">>test.txt") or die "Could not open Test: $!"; print FILE "Got to line xx"; close(FILE);