Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Incomprehensible list input

  1. Feb 8, 2007 #1
    Hi all,

    I am trying to run a fortran 77 program which was compiled using g77 and it comes up with the following error ::


    I want the program to read some data files and analyse them so I have written the list like this ::

    I have no idea why this error is coming up... I have checked the program and he seems fine and I have declared the list in the declarations. The part of code used to open the file with the list of data files is the following ::

    If any one has any ideas what the problem could be.. :frown:

    Thanks in advance :bugeye:
  2. jcsd
  3. Feb 8, 2007 #2


    User Avatar
    Science Advisor
    Homework Helper

    The error message is about a read statement, not an open statement. If says the data in the file was in the wrong format.

    If you want to do read character strings with list-directed I/O like

    character*50 liste
    read(*,*) (liste)

    then the character strings in the data file must be in quotes


    To read character data without the quotes, do a formatted read using A format:

    read(*,'A') (liste)
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Incomprehensible list input
  1. Linked List (Replies: 9)

  2. Linked list (Replies: 12)