This repository has been archived on 2021-09-15. You can view files and clone it, but cannot push or open issues or pull requests.
DUT2Curling/m/ReadFile.rb
Quentin 761e1e53cb new file: README.md~
new file:   c/ff~
	modified:   c/main.rb
	renamed:    c/ff -> fichier/ff
	new file:   fichier/index.html
	modified:   m/ReadFile.rb
	new file:   m/ReadFolder.rb
2013-12-20 10:27:54 +01:00

23 lines
239 B
Ruby

class ReadFile
def initialize(pFic)
@fic = File.open(pFic, "r")
end
def getALL
all = @fic.read
return all
end
def getUrls
txt = self.getALL
url = txt.scan(/http[^\s]*/)
return url
end
end