From: John Nott Date: 2007-10-02T22:40:40+09:00 Subject: Error in Loop!! ------_=_NextPart_001_01C804F9.B0991790 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Everyone! I keep getting the following error message for this line of the below cod= e: =20 mat1[r,c] << this_record.chomp(",").strip() =20 I have been racking my brain but can't see a sollution - have used this l= ine before so pretty baffled!! Anyone got any ideas - would be very appreciated! The error message is: =20 =20 Error: private method `<<' called for 0.0:Float =20 =20 =20 HERE IS THE FULL CODE =20 mat1 =3D OtMatrix.new(19,649) =20 r =3D 0 c =3D 1 =20 =20 =20 while ( !file.eof ) =20line =3D file.gets =20r =3D r+1 =20line.each(',') { |this_record| =20 mat1[r,c] << this_record.chomp(",").strip() =20 c =3D c+1=20 =20if c =3D=3D 19 then=20 =20c =3D=3D 1=20 =20end =20 } =20 =20 end =20 =20 #########################################################################= ############ This e-mail message has been scanned for Viruses and Content and cleared = by MailMarshal #########################################################################= ############ ------_=_NextPart_001_01C804F9.B0991790--