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/c/main.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

40 lines
524 B
Ruby
Executable File

#! /usr/bin/ruby
#lib
require '../lib/gtk2' # lib graphique
require '../lib/net/ping' #lib netwotk
#include
require '../m/ReadFile'
require '../v/Vue1'
require '../v/VueError'
Gtk.init
v1 = Vue1.new
v1.listenerBouton
v1.listenerDestroy
v1.getWindow.show_all
Gtk.main
str = v1.getEntry
#print str
if(File.exist?(str))
f = ReadFile.new(str)
tabL = f.getLines
for i in tabL
puts i
end
else
vd = VueError.new("Fichier inexistant")
vd.getDialog.run
vd.getDialog.destroy
end
print "Termine\n"