Can I open RAR files?

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

On May 22, 1:33 pm, Xarc [email protected] 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.

On May 22, 7:05 pm, akbarhome [email protected] wrote:

On May 22, 1:33 pm, Xarc [email protected] 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

On May 22, 1:33 pm, Xarc [email protected] 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.

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.

Ok. Thank you! :smiley:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs