From: "Pablo Q." Date: 2008-06-23T22:15:16+09:00 Subject: Re: Changing the program to work with files ------=_Part_4755_4730828.1214227024990 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Just change ARGV values with variables from file. This example do the work for 3 params taking them from command or file. var1=3D ARGV[0] var2=3D ARGV[1] var3=3D ARGV[2] file =3D 'where_is_the_file_with_param' file_with_param =3DFile.new(file,"r") param =3D file_with_param.gets.split(' ',-1) file_with_param.close() var1 ||=3D param[0] var2 ||=3D param[1] var3 ||=3D param[2] 2008/6/22 Dave Bass : > Alex Mr wrote: > > I wanted to see if anybody can help me to modify it so that it takes it= s > > input from a file (text) and write its output also to a file (binary) > > Use the builtin File class. > -- > Posted via http://www.ruby-forum.com/. > > --=20 Ing. Pablo Andr=E9s Quir=F3s Sol=EDs Tel (506) 833-7656 ------=_Part_4755_4730828.1214227024990--