📄 node71.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//FR">
<!--Converted with LaTeX2HTML 97.1 (release) (July 13th, 1997)
by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippman, Marek Rouchal, Martin Wilck and others -->
<HTML><BLOCKQUOTE><img src="logo.gif" tppabs="http://www.linux-kheops.com/doc/ansi-c/icons.gif/logo.gif" ALIGN=right></A>
<HEAD>
<TITLE>Lecture et 閏riture par caract鑢e sur fichier</TITLE>
<META NAME="description" CONTENT="Lecture et 閏riture par caract鑢e sur fichier">
<META NAME="keywords" CONTENT="Introduction_ANSI_C">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso_8859_1">
<LINK REL="STYLESHEET" HREF="Introduction_ANSI_C.css" tppabs="http://www.linux-kheops.com/doc/ansi-c/Introduction_ANSI_C.css">
<LINK REL="next" HREF="node72.htm" tppabs="http://www.linux-kheops.com/doc/ansi-c/node72.htm">
<LINK REL="previous" HREF="node70.htm" tppabs="http://www.linux-kheops.com/doc/ansi-c/node70.htm">
<LINK REL="up" HREF="node68.htm" tppabs="http://www.linux-kheops.com/doc/ansi-c/node68.htm">
<LINK REL="next" HREF="node72.htm" tppabs="http://www.linux-kheops.com/doc/ansi-c/node72.htm">
</HEAD>
<BODY BACKGROUND="marge.gif" tppabs="http://www.linux-kheops.com/doc/ansi-c/icons.gif/marge.gif" TEXT=#000000 LINK=#FF0000 VLINK=#1809BB >
<!--Navigation Panel-->
<A NAME="tex2html2185"
HREF="node72.htm" tppabs="http://www.linux-kheops.com/doc/ansi-c/node72.htm">
<IMG WIDTH="77" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
SRC="next_motif.gif" tppabs="http://www.linux-kheops.com/doc/ansi-c/icons.gif/next_motif.gif"></A>
<A NAME="tex2html2181"
HREF="node68.htm" tppabs="http://www.linux-kheops.com/doc/ansi-c/node68.htm">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
SRC="up_motif.gif" tppabs="http://www.linux-kheops.com/doc/ansi-c/icons.gif/up_motif.gif"></A>
<A NAME="tex2html2175"
HREF="node70.htm" tppabs="http://www.linux-kheops.com/doc/ansi-c/node70.htm">
<IMG WIDTH="96" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
SRC="previous_motif.gif" tppabs="http://www.linux-kheops.com/doc/ansi-c/icons.gif/previous_motif.gif"></A>
<A NAME="tex2html2183"
HREF="node1.htm" tppabs="http://www.linux-kheops.com/doc/ansi-c/node1.htm">
<IMG WIDTH="96" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
SRC="contents_motif.gif" tppabs="http://www.linux-kheops.com/doc/ansi-c/icons.gif/contents_motif.gif"></A>
<A NAME="tex2html2184"
HREF="node174.htm" tppabs="http://www.linux-kheops.com/doc/ansi-c/node174.htm">
<IMG WIDTH="59" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index"
SRC="index_motif.gif" tppabs="http://www.linux-kheops.com/doc/ansi-c/icons.gif/index_motif.gif"></A>
<BR>
<B> Suivant:</B> <A NAME="tex2html2186"
HREF="node72.htm" tppabs="http://www.linux-kheops.com/doc/ansi-c/node72.htm">Lecture et 閏riture par</A>
<B> D閎ut:</B> <A NAME="tex2html2182"
HREF="node68.htm" tppabs="http://www.linux-kheops.com/doc/ansi-c/node68.htm">Les entr閑s-sorties</A>
<B> Pr閏閐ent:</B> <A NAME="tex2html2176"
HREF="node70.htm" tppabs="http://www.linux-kheops.com/doc/ansi-c/node70.htm">Ouverture et fermeture de</A><HR>
<BR>
<BR>
<!--End of Navigation Panel-->
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS"><strong>Paragraphes</strong></A>
<UL>
<LI><A NAME="tex2html2187"
HREF="node71.htm#SECTION00731000000000000000" tppabs="http://www.linux-kheops.com/doc/ansi-c/node71.htm#SECTION00731000000000000000">
lecture par caract鑢e : <TT>fgetc</TT></A>
<UL>
<LI><A NAME="tex2html2188"
HREF="node71.htm#SECTION00731100000000000000" tppabs="http://www.linux-kheops.com/doc/ansi-c/node71.htm#SECTION00731100000000000000">
Utilisation</A>
<LI><A NAME="tex2html2189"
HREF="node71.htm#SECTION00731200000000000000" tppabs="http://www.linux-kheops.com/doc/ansi-c/node71.htm#SECTION00731200000000000000">
S閙antique des param鑤res</A>
<LI><A NAME="tex2html2190"
HREF="node71.htm#SECTION00731300000000000000" tppabs="http://www.linux-kheops.com/doc/ansi-c/node71.htm#SECTION00731300000000000000">
Description</A>
<LI><A NAME="tex2html2191"
HREF="node71.htm#SECTION00731400000000000000" tppabs="http://www.linux-kheops.com/doc/ansi-c/node71.htm#SECTION00731400000000000000">
Valeur rendue</A>
<LI><A NAME="tex2html2192"
HREF="node71.htm#SECTION00731500000000000000" tppabs="http://www.linux-kheops.com/doc/ansi-c/node71.htm#SECTION00731500000000000000">
Utilisation typique</A>
</UL>
<LI><A NAME="tex2html2193"
HREF="node71.htm#SECTION00732000000000000000" tppabs="http://www.linux-kheops.com/doc/ansi-c/node71.htm#SECTION00732000000000000000">
lecture par caract鑢e : <TT>getc</TT></A>
<LI><A NAME="tex2html2194"
HREF="node71.htm#SECTION00733000000000000000" tppabs="http://www.linux-kheops.com/doc/ansi-c/node71.htm#SECTION00733000000000000000">
lecture par caract鑢e : <TT>getchar</TT></A>
<UL>
<LI><A NAME="tex2html2195"
HREF="node71.htm#SECTION00733100000000000000" tppabs="http://www.linux-kheops.com/doc/ansi-c/node71.htm#SECTION00733100000000000000">
Utilisation</A>
<LI><A NAME="tex2html2196"
HREF="node71.htm#SECTION00733200000000000000" tppabs="http://www.linux-kheops.com/doc/ansi-c/node71.htm#SECTION00733200000000000000">
Description</A>
</UL>
<LI><A NAME="tex2html2197"
HREF="node71.htm#SECTION00734000000000000000" tppabs="http://www.linux-kheops.com/doc/ansi-c/node71.htm#SECTION00734000000000000000">
閏riture par caract鑢e : <TT>fputc</TT></A>
<UL>
<LI><A NAME="tex2html2198"
HREF="node71.htm#SECTION00734100000000000000" tppabs="http://www.linux-kheops.com/doc/ansi-c/node71.htm#SECTION00734100000000000000">
Utilisation</A>
<LI><A NAME="tex2html2199"
HREF="node71.htm#SECTION00734200000000000000" tppabs="http://www.linux-kheops.com/doc/ansi-c/node71.htm#SECTION00734200000000000000">
S閙antique des param鑤res</A>
<LI><A NAME="tex2html2200"
HREF="node71.htm#SECTION00734300000000000000" tppabs="http://www.linux-kheops.com/doc/ansi-c/node71.htm#SECTION00734300000000000000">
Description</A>
<LI><A NAME="tex2html2201"
HREF="node71.htm#SECTION00734400000000000000" tppabs="http://www.linux-kheops.com/doc/ansi-c/node71.htm#SECTION00734400000000000000">
Valeur rendue</A>
<LI><A NAME="tex2html2202"
HREF="node71.htm#SECTION00734500000000000000" tppabs="http://www.linux-kheops.com/doc/ansi-c/node71.htm#SECTION00734500000000000000">
Utilisation typique</A>
</UL>
<LI><A NAME="tex2html2203"
HREF="node71.htm#SECTION00735000000000000000" tppabs="http://www.linux-kheops.com/doc/ansi-c/node71.htm#SECTION00735000000000000000">
lecture par caract鑢e : <TT>putc</TT></A>
<LI><A NAME="tex2html2204"
HREF="node71.htm#SECTION00736000000000000000" tppabs="http://www.linux-kheops.com/doc/ansi-c/node71.htm#SECTION00736000000000000000">
閏riture par caract鑢e : <TT>putchar</TT></A>
<UL>
<LI><A NAME="tex2html2205"
HREF="node71.htm#SECTION00736100000000000000" tppabs="http://www.linux-kheops.com/doc/ansi-c/node71.htm#SECTION00736100000000000000">
Utilisation</A>
<LI><A NAME="tex2html2206"
HREF="node71.htm#SECTION00736200000000000000" tppabs="http://www.linux-kheops.com/doc/ansi-c/node71.htm#SECTION00736200000000000000">
Description</A>
</UL></UL>
<!--End of Table of Child-Links-->
<HR>
<H1><font COLOR=#1809BB><A NAME="SECTION00730000000000000000">
Lecture et 閏riture par caract鑢e sur fichier</A>
</font></H1>
<P><H2><font COLOR=#1809BB><A NAME="SECTION00731000000000000000">
lecture par caract鑢e : <TT>fgetc</TT></A>
</font></H2>
<A NAME="3415"> </A>
<P><H3><A NAME="SECTION00731100000000000000">
Utilisation</A>
</H3>
<TT>fgetc (</TT><I>flot-de-donn閑s</I><TT>)</TT>
<BR>
<P><H3><A NAME="SECTION00731200000000000000">
S閙antique des param鑤res</A>
</H3>
<DL COMPACT>
<DT><SMALL>-</SMALL>
<DD><I>flot-de-donn閑s</I> est de type pointeur vers <TT>FILE</TT>.
Il pointe vers le fichier
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -