#Idiomatically read file if it contains new lines or carriage returns and new line
5 messages · Page 1 of 1 (latest)
5 messages · Page 1 of 1 (latest)
Is there a way to idiomatically read a file, line by line if the file could be from windows (including /r/n) or on *nix (/n)?
you want to read it line by line? and worry \r in the file ?
There might be a carriage return in there as we have windows users who are committing files and have autocrlf on