From: Timothy Byrd Date: 2005-04-02T09:34:42+09:00 Subject: Re: Getting binary data That doesn't sound like binary data to me. For example, this C program: #include "stdio.h" int main() { float some_float_1 = 42e23, some_float_2 = 23.42; printf("%f %f\n", some_float_1, some_float_2); return 0; } Produces: 4199999942871246500000000.000000 23.420000 If that's the case, something like this might answer: filename = "data.txt" IO.foreach(filename) { |line| a = line.split x = a[0].to_f y = a[1].to_f puts "x = #{x}, y = #{y}" } -- Timothy