02.05.2014 Views

Patrick Corde & Anne Fouilloux

Patrick Corde & Anne Fouilloux

Patrick Corde & Anne Fouilloux

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Fichier texte séquentiel 107<br />

Format d’édition L en lecture<br />

Ce format à la forme générale : Lw<br />

Ce type de format permet la lecture de valeurs<br />

logiques.<br />

Le caractère w indique comme précédemment la<br />

largeur du champ en entrée. Celui-ci doit comporter<br />

comme premier caractère non blanc l’une des lettres<br />

F, f, T ou t éventuellement précédée du caractère<br />

’.’. N’importe quels caractères peuvent compléter le<br />

champ.<br />

LOGICAL l1, l2<br />

...<br />

READ( UNIT=1, FMT=’(L6,L7)’ ) l1, l2<br />

...<br />

Entrées<br />

.true..false.<br />

^^^^t..FACILE<br />

t^^^^^F^^^^^^<br />

Affectations<br />

l1=.TRUE., l2=.FALSE.<br />

l1=.TRUE., l2=.FALSE.<br />

l1=.TRUE., l2=.FALSE.<br />

INSTITUT DU DÉVELOPPEMENT<br />

ET DES RESSOURCES<br />

EN INFORMATIQUE SCIENTIFIQUE<br />

Cours langage Fortran – 27 janvier 2006<br />

<strong>Patrick</strong> <strong>Corde</strong> et <strong>Anne</strong> <strong>Fouilloux</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!