#!/usr/bin/env ruby require("gsl") v = Vector.alloc(4) v.fread("a.dat") p v v2 = Vector.alloc(4) v2.fscanf("b.dat") p v2