Sha256: 955460ec36c18c515013767f0461eb3100ec816518118dd435f20e9d0ae52e34
Contents?: true
Size: 793 Bytes
Versions: 2
Compression:
Stored size: 793 Bytes
Contents
#open the record def openmoviedata require 'fileutils' $currentmovietext = "%s" % [@a_moviefilename] photoname = $currentmovietext + ".jpg" begin # exception trapped block path_to = File.join( "rwd_files", "moviestmp.jpg" ) path_from = File.join( $rwdmovies_directory, photoname ) if ! File.exist?(path_from) path_from = File.join($rwdmovies_directory,"nophoto.jpg" ) end if File.exist?(path_from) FileUtils.cp(path_from, path_to) end fileName = $rwdmovies_directory + "/" + $currentmovietext + ".nam" fd = File.open(fileName,"r") @moviedatadisplay = " " while ! fd.eof? @moviedatadisplay = fd.read end fd.close rescue SystemCallError, StandardError $stderr.print "system call error: " + $! end # exception rescue end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rwdmovies-0.95 | code/superant.com.rwdmovies/openmoviedata.rb |
rwdmovies-0.94 | code/superant.com.rwdmovies/openmoviedata.rb |