On 29/10/2012 19:05, Soichi Ishida wrote:
> dir  =  "~/Dropbox/Ruby/FlightLuggage/"
> file = "airport.csv"
> filename = dir + file
>
> csv_line_read = CSV.open(filename)
>
The tilde (~) expansion to the home directory name is a feature provided 
by the shell. The operating system knows nothing about tilde. You'll 
need something like ENV["HOME"]+"/Dropbox/Ruby/FlightLuggage" instead.

Graham