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 d2a45c0be2 new file: c/.main.rb.kate-swp
new file:   c/ff
	new file:   c/main.rb
	new file:   lib/gtk2.rb
	new file:   lib/gtk2/base.rb
	new file:   lib/net/external.rb
	new file:   lib/net/helper.rb
	new file:   lib/net/http.rb
	new file:   lib/net/icmp.rb
	new file:   lib/net/ping.rb
	new file:   lib/net/tcp.rb
	new file:   lib/net/udp.rb
	new file:   lib/net/wmi.rb
	new file:   m/ReadFile.rb
	new file:   v/Vue1.rb
	new file:   v/VueError.rb
2013-12-13 11:14:02 +01:00

19 lines
249 B
Ruby

class ReadFile
def initialize(pFic)
@fic = File.open(pFic, "r")
end
def getLines
i=0
tabLines = []
@fic.each_line { |ligne|
tabLines[i] = ligne
i = i + 1
}
return tabLines
end
end
class TestLink
end