On Feb 4, 6:50 pm, Vell <lovell.mcilw... / gmail.com> wrote:

> emails = File.open("/users/lem/desktop/test/
> POCs_DNB.txt","r").readlines.map! {|x| x.chomp}
> email.scan(/\S+/)

First you say "emails"; then you say "email".
This is not code that will run.

Didn't you copy and paste?  Don't tell us that you
retyped the code because you were eager for the chance
to introduce errors.

p IO.readlines( "data" ).map{|x| x.strip }
p IO.read( "data" ).split
p IO.read( "data" ).scan(/\S+/)