Main Content

E/S de bas niveau sur des fichiers

Opérations de lecture et d’écriture au niveau de l’octet ou du caractère

Ouvrez, fermez, lisez, écrivez et parcourez des fichiers binaires et texte au niveau de l’octet et du caractère. Pour travailler avec des fichiers au niveau de la variable, consultez Supported File Formats for Import and Export.

Fonctions

développer tout

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

Rubriques