From: Chad Perrin Date: 2010-02-28T11:16:05+09:00 Subject: Re: running a file --oC1+HKm2/end4ao3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 28, 2010 at 01:35:24AM +0900, John Pasqa wrote: > i am using windows, but opening a file with my program doesn't do=20 > anything. I need to know what code will allow the program to read the=20 > file when the file is opened with my program. It sounds like what you need is not a way to get the operating system to call your program when "doing something" with a file, but a way to get your program to operate on a file. The answer to *that* question depends on what exactly you want to do with the file within your program. If that is what you're asking, I recommend you look at the File module for hints: http://www.ruby-doc.org/core/classes/File.html --=20 Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] --oC1+HKm2/end4ao3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkuJ0e0ACgkQ9mn/Pj01uKXo8QCfTdarxWD3iAq4fQgLiyXBXwBE mVYAoMsVzh2UgPFqLxP721jP8OPSN8HU =NbvJ -----END PGP SIGNATURE----- --oC1+HKm2/end4ao3--