I don't know what exactly is happening, so please can you explain?
Your file directories.txt was created on a Windows machine so it has <CR><LF> ("\r\n") line endings and chomp on Unix will only remove the <LF> and leave the <CR>.
In reply to Re: Strange read file behaviour
by jwkrahn
in thread Strange read file behaviour
by saintex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |