cat properties.txt
properties_count,Type,Total,Voice,Data
Traffic_count,DR_TYPE,CREATED_FILES,CREATED_FILES,BULKED_FILES
what i am trying to do is,
file_properties=File.open(‘properties.txt’)
file_properties.each do |line|
cn = line.split(',')
header_name = cn[0]
puts "lie header will be #{header_name}"
puts "Bellow is rest of the values other then #{header_name}"
QUESTOIN: HOW DO I SHOW REST OF VALUES HERE BUT NOT CN[0]
end
So when i will run it , it will show liek bellow
line header will be CDR_count
Bellow is rest of the values other then “CDR_count”
Type
Total
Voice
Data
lie header will be xDR_Traffic
Bellow is rest of the values other then xDR_Traffic
DR_TYPE
CREATED_FILES
CREATED_FILES
BULKED_FILES
Please let me know if the question is confusing …