starlite79
Technical User
Hi there.
I am attempting to read a Fortran file that has the ":" as a continuation character to denote that the function continues on the next line. For example,
{blanks} CALL FUNCTION ( ARG1, ARG2, ARG3
{blanks} : ARG4, ARG5 )
How would I tell Python to know that if it finds a ":" in FUNCTION that it should treat it as the same record?
I've thought of something like:
continue = f_line.find(':')
newf_line = f_line[:continue:]
f_line was already defined earlier in the code.
Any suggestions?
I am attempting to read a Fortran file that has the ":" as a continuation character to denote that the function continues on the next line. For example,
{blanks} CALL FUNCTION ( ARG1, ARG2, ARG3
{blanks} : ARG4, ARG5 )
How would I tell Python to know that if it finds a ":" in FUNCTION that it should treat it as the same record?
I've thought of something like:
continue = f_line.find(':')
newf_line = f_line[:continue:]
f_line was already defined earlier in the code.
Any suggestions?