! Program Example from "Essential Fortran 90 & 95" by Loren P. Meissner
! Copyright 1996. Copying for sale requires permission from the author.
! Otherwise, distribution is permitted if these three lines are included.

! Example 9.6. Literal character constant as a format specifier in control list.
  program J06
    implicit none
    real :: A, B, C
    integer :: J, K
! start program Literal
    open (unit = 1, file = "JA.txt", status = "old", action = "read", position = "rewind")
    read (unit = 1, fmt = "(3 f12.0, 2 i3)" ) A, B, C, J, K
    write (unit = *, fmt = *) A, B, C, J, K
    stop
  end program J06
