U
Une bévue
how to read a file having no carriage return ?
in that file i need only to found a string like :
news.free.fr
thats to say news.xxx.yyy
if i do :
File.open("#{file}").each { |l|
p l #if l =~ /news\./
h=l.split(" ")
p h.length
}
i get nothing
in that file i need only to found a string like :
news.free.fr
thats to say news.xxx.yyy
if i do :
File.open("#{file}").each { |l|
p l #if l =~ /news\./
h=l.split(" ")
p h.length
}
i get nothing