Sha256: 0191e1a092b3e14e7b501e6d3a53280cb099a356a4b86bc7ecab210d6754ae0b
Contents?: true
Size: 884 Bytes
Versions: 1
Compression:
Stored size: 884 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rwdmovies-0.93 | code/superant.com.rwdmovies/openmoviedata.rb |