Can I open RAR files?


#1

Hi!
How can I open .rar files from ruby?


#2

On May 22, 1:33 pm, Xarc removed_email_address@domain.invalid wrote:

Hi!
How can I open .rar files from ruby?


Posted viahttp://www.ruby-forum.com/.

Your best bet is using system call for unrar program.


#3

On May 22, 7:05 pm, akbarhome removed_email_address@domain.invalid wrote:

On May 22, 1:33 pm, Xarc removed_email_address@domain.invalid wrote:

Hi!
How can I open .rar files from ruby?


Posted viahttp://www.ruby-forum.com/.

Your best bet is using system call for unrar program.

You may also be able to use popen(), assuming the command line version
of RAR supports taking arguments to specify listing the contents of
a .rar file. This way would be a bit more “interactive” than using
system() to tell RAR to list the .rar files contents to a temp file,
and then reading that file from your Ruby code.

Vasudev Ram
Dancing Bison Enterprises
http://www.dancingbison.com


#4

On May 22, 1:33 pm, Xarc removed_email_address@domain.invalid wrote:

Hi!
How can I open .rar files from ruby?


Posted viahttp://www.ruby-forum.com/.

Your best bet is using system call for unrar program.


#5

Xarc wrote:

Hi!
How can I open .rar files from ruby?

There is no native way or right way to do that, the thing is that RAR is
a propietary file compression format. As and
said that is your best shot.


#6

Ok. Thank you! :smiley: