Main Content

Low-Level File I/O

Read and write operations at the byte or character level

Funzioni

fcloseClose one or all open files
feofTest for end of file
ferrorFile I/O error information
fgetlRead line from file, removing newline characters
fgetsRead line from file, keeping newline characters
filereadRead contents of file as text
fopenOpen file, or obtain information about open files
fprintfWrite data to text file
freadRead data from binary file
frewindMove file position indicator to beginning of open file
fscanfRead data from text file
fseekMove to specified position in file
ftellCurrent position
fwriteWrite data to binary file

Esempi e istruzioni

Concetti