Sha256: a81ba47d0db813d14b00b5fd6aa00cb92db022fc61069025ec38d23bab9f48d6

Contents?: true

Size: 867 Bytes

Versions: 3

Compression:

Stored size: 867 Bytes

Contents

  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

3 entries across 3 versions & 1 rubygems

Version Path
rwdmovies-0.91 code/superant.com.rwdmovies/openmoviedata.rb
rwdmovies-0.90 code/superant.com.rwdmovies/openmoviedata.rb
rwdmovies-0.92 code/superant.com.rwdmovies/openmoviedata.rb