Sha256: fc762c2d55d9a333d86655184664a9190726a75d434b60e9da1392d4c7cf0b5c
Contents?: true
Size: 1.24 KB
Versions: 3
Compression:
Stored size: 1.24 KB
Contents
# this method puts the configuration rexord on the screen def loadrwdtorrentconfiguration require 'fileutils' @a_torrentconfigurationfilename = "rwdtorrent.cnf" begin # exception trapped block Dir.chdir($progdir) fileName = File.join(ConfigurationDir, "rwdtorrent.cnf") fd = File.open(fileName,"r") @a_torrentconfigline1= fd.readline.chomp @a_torrentconfigline2 = fd.readline.chomp @a_torrentconfigline3 = fd.readline.chomp @a_torrentconfigline4 = fd.readline.chomp @a_torrentconfigline5 = fd.readline.chomp @a_torrentconfigline6 = fd.readline.chomp @a_torrentconfigline7 =fd.readline.chomp @a_torrentconfigline8 = fd.readline.chomp @a_torrentconfigline9 = fd.readline.chomp @a_torrentconfigline10 = fd.readline.chomp @a_torrentconfigline11 = fd.readline.chomp while ! fd.eof? @extratorrentconfigdatadisplay = fd.readline end fd.close rescue SystemCallError, StandardError $stderr.print "system call error: " + $! end # exception rescue end
Version data entries
3 entries across 3 versions & 1 rubygems