2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
17
Task/Here-document/Fortran/here-document.f
Normal file
17
Task/Here-document/Fortran/here-document.f
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
INTEGER I !A stepper.
|
||||
CHARACTER*666 I AM !Sufficient space.
|
||||
I AM = "<col72
|
||||
C 111111111122222222223333333333444444444455555555556666666666
|
||||
C 123456789012345678901234567890123456789012345678901234567890123456789
|
||||
1 <col72
|
||||
2 I AM <col72
|
||||
3 <col72
|
||||
4 THAT I AM <col72
|
||||
5"
|
||||
|
||||
Chug through the text blob.
|
||||
DO I = 0,600,66 !Known length.
|
||||
WRITE (6,1) I AM(I + 1:I + 66) !Reveal one line.
|
||||
1 FORMAT (A66) !No control characters are expected.
|
||||
END DO !On to the next line.
|
||||
END
|
||||
Loading…
Add table
Add a link
Reference in a new issue