Thanks that works perfect.
How would I go about reading until a ":" is found?
and does fortran have an if(!eof) if not end of file statement i can use?
Sorry but I am just starting and am having a bit of trouble.
The five boxing
Wizards jumped: quickly
Squids ink:purple
Do you mean read until the line with Wizards and then to stop
or
if the line contains a colon, to read just Wizards jumped and no further on that line and to skip to the next line. So in the latter case you would get The five boxing Wizards jumped and Squids ink
Well I have it reading in a whole question with the first (A) that was posted.
The I have some possible answers like Horseog:Cat
So i would get them one by one and add them to a character string array.
Don't have to tell me how to do the whole thing just teach me how to read until a : then do it again until and end of line.
Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.