• Pascal problem reading a line from an input text file

    GloriaFine Member

    I have a problem with reading a line from an input text file in Pascal. There are different var types in a line.

    integer string1 string2 string3
    integer string1 string2 string3
    integer string1 string2 string3
    .
    .
    .
    

    These might or might not have the same values.

    How can I read these values? It is required to read the 1st line, do something with those values, and then move on to the next line and repeat until the end of file.

  • Amit Member

    It’s been a long time since I used Pascal. You need to use the Record Data Structure.

    http://pascal-programming.info/lesson11.php

Viewing 1 reply thread
  • You must be logged in to reply to this topic.
en_USEnglish