join(1): use getline() instead of fgetln()