• HAK
  • Order of the Butterfly
    Order of the Butterfly
    Posts: 221 from 2003/2/24
    From: Austria, Vienna
    Hi osco,

    Loop is initialized correct, however you're missing several "END"s - one for the "IF OPEN(input.." line and one for the "DO UNTIL EOF(inp.." line - that's why the program thinks it has finished already.

    Just add them at the right place which would be:
    --- cut here ---
    CLOSE(input1)
    CLOSE(output)

    END /* That's the END for the "DO UNTIL EOF..." line
    END /* That's the END for the "IF OPEN(inp.." line

    END

    EXIT
    --- cut here ---

    Using indention in the source would make such pitfalls more visible.


    Bye HAK
  • »27.04.10 - 17:25
    Profile