Sha256: e071e09af7c944ccec3b882361d08c431341608ad8f7b0178e35df4140e68eac
Contents?: true
Size: 663 Bytes
Versions: 2
Compression:
Stored size: 663 Bytes
Contents
# this method adds a new address record def saverwdtorrentconfiguration require 'fileutils' newname = "rwdtorrent.cnf" # grab the filename to create newdata =@a_torrentconfiglines.to_s begin # exception trapped block fileName = File.join( ConfigurationDir, newname ) fd = File.open(fileName,"w") fd.print(newdata) # save the record info to the file fd.close @newconfigurationresult=newdata # show the record info in the browser rescue SystemCallError, StandardError $stderr.print "system call error: " + $! end # exception rescue end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rwdtorrent-0.04 | code/superant.com.rwdtorrent/saveconfigurationrecord.rb |
rwdtorrent-0.05 | code/superant.com.rwdtorrent/saveconfigurationrecord.rb |