Can I open RAR files?

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

···

--
Posted via http://www.ruby-forum.com/.

Your best bet is using system call for unrar program.

···

On May 22, 1:33 pm, Xarc <Shark...@gmail.com> wrote:

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

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

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 <Akbar Home> and <vasudevram>
said that is your best shot.

···

--
Posted via http://www.ruby-forum.com/\.

Your best bet is using system call for unrar program.

···

On May 22, 1:33 pm, Xarc <Shark...@gmail.com> wrote:

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

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

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

···

On May 22, 7:05 pm, akbarhome <akbarh...@gmail.com> wrote:

On May 22, 1:33 pm, Xarc <Shark...@gmail.com> 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.

Ok. Thank you! :smiley:

···

--
Posted via http://www.ruby-forum.com/.