Parameter | Details |
---|---|
chomp(str) | Remove up to one trailing newline from a string. |
str | The string to strip a trailing newline from. Note that strings are immutable by convention. This function returns a new string. |
open(f, file) | Open a file, call the function, and close the file afterward. |
f | The function to call on the IO stream opening the file generates. |
file | The path of the file to open. |