761e1e53cb
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
23 lines
239 B
Ruby
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
|
|
|
|
|
|
|
|
|