◐ Shell
clean mode source ↗

File input/output - cppreference.com

Da cppreference.com.

Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.

La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui.

Click here for the English version of this page

<metanoindex/>

L'intestazione <stdio.h> fornisce supporto generico operazione sul file e le funzioni di forniture con l'input di caratteri ristretto / funzioni di output.

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.

L'intestazione <wchar.h> fornisce funzioni con input di caratteri estesi / funzioni di output.

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.

Funzioni

Accesso ai file

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.

apre un file

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.


(funzione) [modifica]

aprire uno stream esistente con un nome diverso

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.


(funzione) [modifica]

chiude un file

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.


(funzione) [modifica]

sincronizza un flusso di output con il file vero e proprio

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.


(funzione) [modifica]

passa un flusso di file tra caratteri larghi di I / O e il carattere stretto di 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.


(funzione) [modifica]

imposta il buffer per un flusso di file

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.


(funzione) [modifica]

imposta il buffer e la dimensione di un flusso di file

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.


(funzione) [modifica]

Diretta input / output

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.

legge da un file

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.


(funzione) [modifica]

scrive su un file

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.


(funzione) [modifica]

Ingresso formattato / uscita

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.

Carattere stretta

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.

ottiene un carattere da un flusso di file

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.


(funzione) [modifica]

ottiene una stringa di caratteri da un flusso di file

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.


(funzione) [modifica]

scrive un carattere a un flusso di file

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.


(funzione) [modifica]

Scrive una stringa di caratteri in un flusso di file

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.


(funzione) [modifica]

legge un carattere da 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.


(funzione) [modifica]

legge una stringa di caratteri da stdin

Original:

reads a character string from stdin

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(funzione) [modifica]

scrive un carattere stdout

Original:

writes a 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.


(funzione) [modifica]

Scrive una stringa di caratteri 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.


(funzione) [modifica]

mette un personaggio nuovo in un flusso di file

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.


(funzione) [modifica]

Carattere esteso

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.

ottiene un carattere esteso da un flusso di file

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.


(funzione) [modifica]

Ottiene una stringa da un ampio flusso di file

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.


(funzione) [modifica]

scrive un carattere esteso a un flusso di file

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.


(funzione) [modifica]

scrive una stringa bersaglio un flusso di file

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.


(funzione) [modifica]

legge un carattere esteso da stdin

Original:

reads a wide 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.


(funzione) [modifica]

scrive un carattere completamente fuori bersaglio 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.


(funzione) [modifica]

mette un carattere esteso di nuovo in un flusso di file

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.


(funzione) [modifica]

Formattato di input / output

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.

Carattere stretta

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.

legge l'input formattato da stdin, un flusso di file o di un buffer

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.


(funzione) [modifica]

(C99)
(C99)
(C99)

legge l'input formattato da stdin, un flusso di file o un buffer
utilizzando elenco di argomenti variabili

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.


(funzione) [modifica]

stampe formattata uscita stdout, un flusso di file o di un buffer

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.


(funzione) [modifica]

stampe formattata uscita stdout, un flusso di file o un buffer
utilizzando elenco di argomenti variabili

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.


(funzione) [modifica]

Carattere esteso

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.

legge formattato ingresso ampio personaggio di stdin, un flusso di file o di un buffer

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.


(funzione) [modifica]

legge formattato ingresso ampio personaggio di stdin, stream
un file o un buffer utilizzando elenco di argomenti variabili

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.


(funzione) [modifica]

stampe formattata uscita ampio carattere stdout, un flusso di file o di un buffer

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.


(funzione) [modifica]

stampe formattata uscita ampio carattere stdout, stream
un file o un buffer utilizzando elenco di argomenti variabili

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.


(funzione) [modifica]

File di posizionamento

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.

restituisce l'attuale indicatore di posizione del file

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.


(funzione) [modifica]

ottiene l'indicatore di posizione del file

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.


(funzione) [modifica]

si sposta l'indicatore di posizione file in una posizione specifica in un file

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.


(funzione) [modifica]

si sposta l'indicatore di posizione file in una posizione specifica in un file

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.


(funzione) [modifica]

sposta l'indicatore di posizione file all'inizio in un file

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.


(funzione) [modifica]

La gestione degli errori

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.

cancella errori

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.


(funzione) [modifica]

controlli per la fine del file

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.


(funzione) [modifica]

assegni per un errore di file

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.


(funzione) [modifica]

visualizza una stringa di caratteri del corrispondente errore di corrente 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.


(funzione) [modifica]

Le operazioni sui file

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.

cancella un file

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.


(funzione) [modifica]

rinomina un file

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.


(funzione) [modifica]

restituisce un puntatore a un file temporaneo

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.


(funzione) [modifica]

restituisce un nome file univoco

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.


(funzione) [modifica]

Tipi

Definizione nell'header <stdio.h>

Tipo

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

tipo, in grado di contenere tutte le informazioni necessarie alla guida di un CI / O stream

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

tipo, in grado di specificare univocamente una posizione in un file

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.

Macro

Definizione nell'header <stdio.h>

stdin
stdout
stderr

espressione di tipo * FILE associato stream
expression input di tipo FILE * associato al stream
expression uscita di tipo * FILE associato al flusso di output di errore

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.


(macro costante)

EOF

intera espressione costante di int tipo e il valore negativo

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.


(macro costante)

FOPEN_MAX

numero di file che possono essere aperti contemporaneamente

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.


(macro costante)

FILENAME_MAX

dimensione necessaria per un array di char per contenere il nome più lungo di file supportato

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.


(macro costante)

BUFSIZ

dimensione del buffer utilizzato da 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.


(macro costante)

_IOFBF
_IOLBF
_IONBF

argomento di setvbuf () che indica con buffer I / O
argument a setvbuf () che indica la linea l'I / O
argument a setvbuf () indicando senza buffer 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.


(macro costante)

SEEK_SET
SEEK_CUR
SEEK_END

argomento di fseek () che indica in cerca dall'inizio della file
argument di fseek () che indica in cerca dal position
argument file corrente fseek () che indica in cerca dalla fine del file

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.


(macro costante)

TMP_MAX

numero massimo di nomi di file unici che possono essere generati da 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.


(macro costante)

L_tmpnam

dimensione necessaria per un array di char per memorizzare il risultato di 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.


(macro costante)