File input/output
De cppreference.com
< c
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
<metanoindex/>
L'en-tête
<stdio.h> fournit un soutien générique opération de fichier et les fonctions de fournitures à la saisie de caractères étroite / capacités de sortie .Original:
The
<stdio.h> header provides generic file operation support and supplies functions with narrow character input/output capabilities.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
L'en-tête
<wchar.h> fournit des fonctions d'entrée de caractères larges / capacités de sortie . Original:
The
<wchar.h> header supplies functions with wide character input/output capabilities. The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Sommaire
- 1 Fonctions
- 1.1 Déposer accèsOriginal: File accessThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
- 1.2 Entrée / sortie directeOriginal: Direct input/outputThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
- 1.3 Entrée non formatée / sortieOriginal: Unformatted input/outputThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
- 1.4 Caractère étroitOriginal:Narrow characterThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
- 1.5 Caractère largeOriginal:Wide characterThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
- 1.6 Mise en forme d'entrée / sortieOriginal: Formatted input/outputThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
- 1.7 Caractère étroitOriginal:Narrow characterThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
- 1.8 Caractère largeOriginal:Wide characterThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
- 1.9 Fichier de positionnementOriginal: File positioningThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
- 1.10 Erreur de manipulationOriginal: Error handlingThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
- 1.11 Les opérations sur les fichiersOriginal: Operations on filesThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
- 2 Types
- 3 Macros
Fonctions
Original: File access The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
ouvre un fichier Original: opens a file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
ouvrir un flux existant sous un nom différent Original: open an existing stream with a different name The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
ferme un fichier Original: closes a file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
synchronise un flux de sortie avec le fichier réel Original: synchronizes an output stream with the actual file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
passe un flux de fichier entre les caractères larges d'E / S et le caractère étroit I / O Original: switches a file stream between wide character I/O and narrow character I/O The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
définit le tampon pour un flux de fichier Original: sets the buffer for a file stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
définit le tampon et la taille d'un fichier stream Original: sets the buffer and its size for a file stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
Original: Direct input/output The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
lit un fichier Original: reads from a file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
écrit dans un fichier Original: writes to a file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
Original: Unformatted input/output The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
Original: Narrow character The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
devient un personnage à partir d'un flux de fichier Original: gets a character from a file stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
reçoit une chaîne de caractères à partir d'un flux de fichier Original: gets a character string from a file stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
écrit un caractère dans un flux fichier Original: writes a character to a file stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
écrit une chaîne de caractères dans un flux fichier Original: writes a character string to a file stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
lit un caractère de stdin Original: reads a character from stdin The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
lit une chaîne de caractères à partir stdinOriginal: reads a character string from stdinThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
écrit un caractère stdoutOriginal: writes a character to stdoutThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
écrit une chaîne de caractères à stdout Original: writes a character string to stdout The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
met un caractère nouveau dans un flux de fichier Original: puts a character back into a file stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
Original: Wide character The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
obtient un caractère large depuis un flux de fichier Original: gets a wide character from a file stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
obtient une chaîne large à partir d'un flux de fichier Original: gets a wide string from a file stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
écrit un caractère large dans un flux fichier Original: writes a wide character to a file stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
écrit une chaîne de large pour un flux de fichier Original: writes a wide string to a file stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
lit un caractère large depuis stdinOriginal: reads a wide character from stdinThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
écrit un caractère large stdout Original: writes a wide character to stdout The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
met un caractère large en arrière dans un flux de fichier Original: puts a wide character back into a file stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
Original: Formatted input/output The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
Original: Narrow character The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
lit l'entrée en forme à partir stdin, un flux de fichier ou un tampon Original: reads formatted input from stdin, a file stream or a buffer The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
(C99) (C99) (C99) |
lit l'entrée en forme à partir stdin, un flux ou un fichier en utilisant buffer liste d'arguments variable Original: reads formatted input from stdin, a file stream or a buffer using variable argument list The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) |
impressions en forme de sortie de stdout, un flux de fichier ou d'un tampon Original: prints formatted output to stdout, a file stream or a buffer The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
impressions formaté à stdout, un flux ou un fichier en utilisant buffer liste d'arguments variable Original: prints formatted output to stdout, a file stream or a buffer using variable argument list The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
Original: Wide character The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
lit format d'entrée pour les caractères larges de stdin, un flux de fichier ou un tampon Original: reads formatted wide character input from stdin, a file stream or a buffer The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
(C99) (C99) (C99) |
lit format d'entrée pour les caractères larges de stdin, un stream fichier ou un tampon en utilisant la liste d'arguments variable Original: reads formatted wide character input from stdin, a file stream or a buffer using variable argument list The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) |
impressions en forme de sortie de caractères étendus pour stdout, un flux de fichier ou d'un tampon Original: prints formatted wide character output to stdout, a file stream or a buffer The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
impressions résultat formaté caractère large stdout, un stream fichier ou un tampon en utilisant la liste d'arguments variable Original: prints formatted wide character output to stdout, a file stream or a buffer using variable argument list The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
Original: File positioning The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
renvoie l'indicateur de position de fichier courant Original: returns the current file position indicator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
obtient l'indicateur de position Original: gets the file position indicator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
déplace l'indicateur de position de fichier à un emplacement spécifique dans un fichier Original: moves the file position indicator to a specific location in a file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
déplace l'indicateur de position de fichier à un emplacement spécifique dans un fichier Original: moves the file position indicator to a specific location in a file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
déplace l'indicateur de position de fichier au début d'un fichier Original: moves the file position indicator to the beginning in a file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
Original: Error handling The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
efface les erreurs Original: clears errors The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
contrôle de la fin de fichier Original: checks for the end-of-file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
chèques pour une erreur de fichier Original: checks for a file error The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
affiche une chaîne de caractères correspondant de l'erreur de courant à stderr Original: displays a character string corresponding of the current error to stderr The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
Original: Operations on files The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
efface un fichier Original: erases a file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
renomme un fichier Original: renames a file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
renvoie un pointeur vers un fichier temporaire Original: returns a pointer to a temporary file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
retourne un nom de fichier unique Original: returns a unique filename The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) |
Types
Defined in header
<stdio.h> | |
Type d'
Original: Type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
FILE
|
type, capable de contenir toutes les informations nécessaires pour contrôler un flux CI / O
Original: type, capable of holding all information needed to control a C I/O stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
fpos_t
|
le type, capable de spécifier de manière unique une position d'une image
Original: type, capable of uniquely specifying a position in a file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Macros
Defined in header
<stdio.h> | |
stdin stdout stderr |
expression de type FILE * associé à l'entrée de stream expression FILE * type associé à la sortie de stream expression FILE * type associé au flux de sortie d'erreur Original: expression of type FILE* associated with the input stream expression of type FILE* associated with the output stream expression of type FILE* associated with the error output stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EOF |
expression constante de nombre entier int type et la valeur négative Original: integer constant expression of type int and negative value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
FOPEN_MAX |
nombre de fichiers qui peuvent être ouverts simultanément Original: number of files that can be open simultaneously The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
FILENAME_MAX |
taille nécessaire pour un tableau de char de tenir le plus long nom de fichier pris en charge Original: size needed for an array of char to hold the longest supported file name The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
BUFSIZ |
taille de la mémoire tampon utilisée par setbuf () Original: size of the buffer used by setbuf() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
_IOFBF _IOLBF _IONBF |
argument pour setvbuf () indiquant fully buffered I / O argument à setvbuf () indiquant un tampon de ligne I / O argument à setvbuf () indiquant sans tampon I / O Original: argument to setvbuf() indicating fully buffered I/O argument to setvbuf() indicating line buffered I/O argument to setvbuf() indicating unbuffered I/O The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
SEEK_SET SEEK_CUR SEEK_END |
argument à fseek () indiquant la recherche à partir du début de l'file argument à fseek () indique la recherche du fichier en cours position argument à fseek () indiquant la recherche de la fin du fichier Original: argument to fseek() indicating seeking from beginning of the file argument to fseek() indicating seeking from the current file position argument to fseek() indicating seeking from end of the file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
TMP_MAX |
nombre maximum de noms de fichiers uniques pouvant être générés par tmpnam () Original: maximum number of unique filenames that can be generated by tmpnam() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
L_tmpnam |
taille nécessaire pour un tableau de char pour contenir le résultat de tmpnam () Original: size needed for an array of char to hold the result of tmpnam() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |