<?xml version="1.0" encoding="UTF-8"?><lom:lom xmlns:lom="http://ltsc.ieee.org/xsd/LOM" xmlns:lomfr="http://www.lom-fr.fr/xsd/LOMFR">
<lom:general>
<lom:identifier>
<lom:catalog>URI</lom:catalog>
<lom:entry>http://ori.unit-c.fr/uid/unit-ori-wf-1-3027</lom:entry>
</lom:identifier>
<lom:title>
<lom:string language="fre">La gestion des fichiers (série : Programmation en langage C)</lom:string>
</lom:title>
<lom:language>fre</lom:language>
<lom:description>
<lom:string language="fre">Le C offre la possibilité de lire et d'écrire des données dans un fichier.
Pour des raisons d'efficacité, les accès à un fichier se font par l'intermédiaire d'une mémoire-tampon (buffer), ce qui permet de réduire le nombre d'accès aux périphériques (disque...).
Pour pouvoir manipuler un fichier, un programme a besoin d'un certain nombre d'informations : l'adresse de l'endroit de la mémoire-tampon où se trouve le fichier, la position de la tête de lecture, le mode d'accès au fichier (lecture ou écriture)... Ces informations sont rassemblées dans une structure dont le type, FILE *, est défini dans stdio.h. Un objet de type FILE * est appelé flot de données (en anglais, stream).
Avant de lire ou d'écrire dans un fichier, on notifie son accès par la commande fopen. Cette fonction prend comme argument le nom du fichier, négocie avec le système d'exploitation et initialise un flot de données, qui sera ensuite utilisé lors de l'écriture ou de la lecture. Après les traitements, on annule la liaison entre le fichier et le flot de données grâce à la fonction fclose.</lom:string>
</lom:description>
<lom:keyword>
<lom:string language="fre">fuscia</lom:string>
</lom:keyword>
<lom:keyword>
<lom:string language="fre">langage C</lom:string>
</lom:keyword>
<lom:keyword>
<lom:string language="fre">langage impératif</lom:string>
</lom:keyword>
<lom:keyword>
<lom:string language="fre">opération sur fichier</lom:string>
</lom:keyword>
<lom:keyword>
<lom:string language="fre">mémoire</lom:string>
</lom:keyword>
<lom:keyword>
<lom:string language="fre">adresse</lom:string>
</lom:keyword>
<lom:keyword>
<lom:string language="fre">lecture</lom:string>
</lom:keyword>
<lom:keyword>
<lom:string language="fre">écriture</lom:string>
</lom:keyword>
<lom:structure>
<lom:source>LOMv1.0</lom:source>
<lom:value>atomic</lom:value>
</lom:structure>
<lom:aggregationLevel>
<lom:source>LOMv1.0</lom:source>
<lom:value>2</lom:value>
</lom:aggregationLevel>
<lomfr:documentType>
<lomfr:source>LOMv1.0</lomfr:source>
<lomfr:value>texte</lomfr:value>
</lomfr:documentType>
</lom:general>
<lom:lifeCycle>
<lom:status>
<lom:source>LOMv1.0</lom:source>
<lom:value>final</lom:value>
</lom:status>
<lom:contribute>
<lom:role>
<lom:source>LOMv1.0</lom:source>
<lom:value>author</lom:value>
</lom:role>
<lom:entity>BEGIN:VCARD
N:Canteaut;Anne
FN:Anne Canteaut
EMAIL;TYPE=INTERNET:
ORG:Institut National de Recherche en Informatique et en Automatique
END:VCARD</lom:entity>
<lom:date>
<lom:dateTime>2009-06-02</lom:dateTime>
</lom:date>
</lom:contribute>
<lom:contribute>
<lom:role>
<lom:source>LOMv1.0</lom:source>
<lom:value>publisher</lom:value>
</lom:role>
<lom:entity>BEGIN:VCARD
N:Université de Limoges
FN:Université de Limoges
EMAIL;TYPE=INTERNET:
ORG:
END:VCARD</lom:entity>
<lom:entity>BEGIN:VCARD
N:Institut National de Recherche en Informatique et en Automatique
FN:Institut National de Recherche en Informatique et en Automatique
EMAIL;TYPE=INTERNET:
ORG:
END:VCARD</lom:entity>
<lom:date>
<lom:dateTime>2009-06-02</lom:dateTime>
</lom:date>
</lom:contribute>
</lom:lifeCycle>
<lom:metaMetadata>
<lom:identifier>
<lom:catalog>URI</lom:catalog>
<lom:entry>http://ori.unit-c.fr/uid/unit-ori-wf-1-3028</lom:entry>
</lom:identifier>
<lom:contribute>
<lom:role>
<lom:source>LOMv1.0</lom:source>
<lom:value>creator</lom:value>
</lom:role>
<lom:entity>BEGIN:VCARD
N:Gilles-Gallet;Isabelle
FN:Isabelle Gilles-Gallet
EMAIL;TYPE=INTERNET:
ORG:UNIT
END:VCARD</lom:entity>
<lom:date>
<lom:dateTime>2009-06-02</lom:dateTime>
</lom:date>
</lom:contribute>
<lom:contribute>
<lom:role>
<lom:source>LOMv1.0</lom:source>
<lom:value>validator</lom:value>
</lom:role>
<lom:entity>BEGIN:VCARD
N:Gilles-Gallet;Isabelle
FN:Isabelle Gilles-Gallet
EMAIL;TYPE=INTERNET:
ORG:UNIT
END:VCARD</lom:entity>
<lom:date>
<lom:dateTime>2009-06-02</lom:dateTime>
</lom:date>
</lom:contribute>
<lom:metadataSchema>LOMv1.0</lom:metadataSchema>
<lom:metadataSchema>LOMFRv1.0</lom:metadataSchema>
<lom:metadataSchema>SupLOMFRv1.0</lom:metadataSchema>
</lom:metaMetadata>
<lom:technical>
<lom:format>text/html</lom:format>
<lom:location>http://www-rocq.inria.fr/secret/Anne.Canteaut/COURS_C/chapitre6.html</lom:location>
</lom:technical>
<lom:educational>
<lom:learningResourceType>
<lom:source>LOMv1.0</lom:source>
<lom:value>lecture</lom:value>
</lom:learningResourceType>
<lom:intendedEndUserRole>
<lom:source>LOMv1.0</lom:source>
<lom:value>learner</lom:value>
</lom:intendedEndUserRole>
<lom:context>
<lom:source>LOMv1.0</lom:source>
<lom:value>higher education</lom:value>
</lom:context>
<lom:typicalAgeRange>
<lom:string language="fre">18 et +</lom:string>
</lom:typicalAgeRange>
<lom:difficulty>
<lom:source>LOMv1.0</lom:source>
<lom:value>medium</lom:value>
</lom:difficulty>
<lom:description>
<lom:string language="fre">Ce cours, inscrit dans un programme de Master, peut toutefois convenir à des débutants en programmation. De bonnes notions en mathématiques (correspondant généralement à un niveau L2) permettront d'aborder efficacement les exercices.</lom:string>
</lom:description>
<lomfr:activity>
<lomfr:source>LOMFRv1.0</lomfr:source>
<lomfr:value>apprendre</lomfr:value>
</lomfr:activity>
</lom:educational>
<lom:rights>
<lom:cost>
<lom:source>LOMv1.0</lom:source>
<lom:value>no</lom:value>
</lom:cost>
<lom:copyrightAndOtherRestrictions>
<lom:source>LOMv1.0</lom:source>
<lom:value>yes</lom:value>
</lom:copyrightAndOtherRestrictions>
<lom:description>
<lom:string language="fre">Document libre, dans le cadre de la licence Creative Commons (http://creativecommons.org/licenses/by-nc-nd/2.0/fr/), pas d'utilisation commerciale, citation de l'auteur obligatoire et interdiction de désassembler (paternité-pas d'utilisation commerciale-pas de modification)</lom:string>
</lom:description>
</lom:rights>
<lom:relation>
<lom:kind>
<lom:source>LOMv1.0</lom:source>
<lom:value>ispartof</lom:value>
</lom:kind>
<lom:resource>
<lom:identifier>
<lom:catalog>URI</lom:catalog>
<lom:entry>http://ori.unit-c.fr/uid/unit-ori-wf-1-3003</lom:entry>
</lom:identifier>
<lom:description>
<lom:string language="fre">Programmation en C</lom:string>
</lom:description>
</lom:resource>
</lom:relation>
<lom:relation>
<lom:kind>
<lom:source>LOMv1.0</lom:source>
<lom:value>ispartof</lom:value>
</lom:kind>
<lom:resource>
<lom:identifier>
<lom:catalog>URI</lom:catalog>
<lom:entry>http://ori.unit-c.fr/uid/unit-ori-wf-1-3005</lom:entry>
</lom:identifier>
<lom:description>
<lom:string language="fre">Polycopié</lom:string>
</lom:description>
</lom:resource>
</lom:relation>
<lom:annotation/>
<lom:classification>
<lom:purpose>
<lom:source>LOMv1.0</lom:source>
<lom:value>discipline</lom:value>
</lom:purpose>
<lom:taxonPath>
<lom:source>
<lom:string language="fre">Classification UNIT</lom:string>
</lom:source>
<lom:taxon>
<lom:id>1305</lom:id>
<lom:entry>
<lom:string language="fre">Programmation : Algorithmique, langages, conception objet, programmes</lom:string>
</lom:entry>
</lom:taxon>
</lom:taxonPath>
<lom:taxonPath>
<lom:source>
<lom:string language="fre">CDD 22e éd.</lom:string>
</lom:source>
<lom:taxon>
<lom:id>005.13</lom:id>
<lom:entry>
<lom:string language="fre"/>
</lom:entry>
</lom:taxon>
</lom:taxonPath>
</lom:classification>
</lom:lom>