I have two simple csv files: test_1 and test_2. test_1 contains the following: 
    
    
    Letters
    A
    B
    C
    D
    
    
    Run

while test_2 contains: 
    
    
    Numbers
    1
    2
    3
    4
    
    
    Run

I used the following code: 
    
    
    import parsecsv
    
    var p,q: CsvParser
    
    p.open("test_1.csv")
    q.open("test_2.csv")
    p.readHeaderRow()
    q.readHeaderRow()
    
    while q.readRow():
        while p.readRow():
            echo p.rowEntry("Letters")
    
    
    Run

I expected the output to be the 4 letters repeated four times but what I got 
was only 
    
    
    A
    B
    C
    D
    
    
    Run

What could be the explanation for this?

Reply via email to