The Lw descriptor is used for LOGICAL input. The general form of the Lw descriptor is as follows:
The meaning of r and w are:
Suppose the input is the following:LOGICAL :: a, b, c READ(*,"(L3, L8, L10)") a, b, c
1 1 2
....5....0....5....0.
Fax Trust Thursday
Variable a takes the first three positions, which contain
F, a and x. Thus, a receives .FALSE. since the
first character is a F. Variable b takes the next
8 positions, which contain two spaces, T, r, u, s, t and a space.
Since the first non-blank character is a T, b receives
.TRUE. Variable c takes the next 10 positions,
which contain two spaces, T, h, u, r, s, d, a and y. Therefore,
c also receives .TRUE.