I was trying to use the following code to read lines from a file. But when reading a file, the contents are all in one line:
line_num=0 File.open(\'xxx.txt\'
how about gets ?
myFile=File.open("paths_to_file","r") while(line=myFile.gets) //do stuff with line end