From: hu8 Date: 2005-01-31T03:00:48+09:00 Subject: Read CSV-File (Comma Separated Values) Hi! First of all, im a real beginner in ruby. How can I read data from a file? How to separate it, is my second question. So, i don't want to become the File from the STDIN, but to set the uri from the file with uri = '/home/hu8/Documents/data.csv' or somthing like this... btw: How can I read user input, so i make: print "Type A or B" and then the user must type a or b and i become in a variable (like input = user.input()?)? Or does exists a function like the PHP-function fgetcsv()?