Read a file line by line with while
A for loop splits on whitespace and breaks on lines that contain spaces. while read pulls one full line at a time, which is the right shape for log files, CSVs, and any list with one item per line.
Sign in to start the lab