How to write long string variables in Fortran 77

46 Views Asked by At

I am trying to create a string variable of 231 characters in Fortran 77. Such a string would not fit within the 72 columns per line limit in Fortran 77. This would not compile:

      CHARACTER*256 MYSTRING
      DATA MYSTRING / 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.' /

How do I split the string over multiples lines in the source code?

0

There are 0 best solutions below