fork download
  1. begin
  2. File.open(filename) do |file|
  3. file.each do |line|
  4. s_line = line.split('\t')
  5. puts s_line
  6. points = s_line[3].delete(' ').split(',')
  7. s_line = s_line.pop
  8. s_line.push(points)
  9. $contents.push(s_line)
  10. end
  11. end
  12. rescue Exception => e
  13. puts "Exception occured: ", e
  14. end
  15.  
Success #stdin #stdout 0.01s 7408KB
stdin
Standard input is empty
stdout
Exception occured: 
undefined local variable or method `filename' for main:Object