J
Jon Handler
Hi All,
I'm trying to write a loop to read in a file with the following
structure:
<identifying string>
<count of records to follow>
<record 1: string, int>
<record 2: string, int>
...
<record n: string, int>
<next identifying string>
...
And I have this piece of loop:
f = open(File, 'r').each do |l|
strIn = l.chomp
# Now what!?!!
end
I need to advance to the next line of the file within the loop but I
can't for the life of me figure out how to do that. This can't be hard,
but it's defeated me so far!
TIA
Jon
I'm trying to write a loop to read in a file with the following
structure:
<identifying string>
<count of records to follow>
<record 1: string, int>
<record 2: string, int>
...
<record n: string, int>
<next identifying string>
...
And I have this piece of loop:
f = open(File, 'r').each do |l|
strIn = l.chomp
# Now what!?!!
end
I need to advance to the next line of the file within the loop but I
can't for the life of me figure out how to do that. This can't be hard,
but it's defeated me so far!
TIA
Jon