Ruby equivalent of PHP's fopen() method

Posted by lagrz on Stack Overflow See other posts from Stack Overflow or by lagrz
Published on 2010-03-13T22:24:21Z Indexed on 2010/03/13 22:25 UTC
Read the original article Hit count: 442

Filed under:
|
|
|
|

I'm trying to find out if Ruby has en equivalent of php's fopen() method currently used like this:

$fd = fopen("php://stdin", "r");

would that be using ARGV variable?

Basically what I plan on doing is forward raw e-mail messages using the .procmailrc file which I already got working in a test php file, but the project requires the use of Ruby. Therefore I'm not 100% sure if using the ARGV variable would work or if somehow I need to capture the e-mail stream by some other means.

Any help would be greatly appreciated. Thanks :)

© Stack Overflow or respective owner

Related posts about php

Related posts about ruby