Jump to content

Update a configuration file: Difference between revisions

m
→‎{{header|Fortran}}: And, while walking along a street...
m (→‎{{header|Perl 6}}: 'move' is implemented now)
m (→‎{{header|Fortran}}: And, while walking along a street...)
Line 574:
WRITE (6,FRUIT)
END</lang>
Most of which is support stuff. The requirement is to declare a NAMELIST naming the variables of interest, then READ or WRITE using just the name of the NAMELIST. Only three statements, four if the file OPEN is counted. The result is a file in a standard layout.
 
''One statement to write them''
 
''One statement to read them''
 
''One statement to list them all, and in the NAMELIST bind them.''
 
(Apologies to J.R.R. Tolkien)
 
The result is a file in a standard layout.
<pre>
&FRUIT
1,220

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.