Main Content

Low-Level-Datei-I/O

Lesen und Schreiben von Operationen auf Byte- oder Zeichenebene

Sie können binäre Dateien und Textdateien öffnen und schließen und auf Byte- und Zeichenebene lesen, schreiben und navigieren. Zur Arbeit mit Dateien auf verschiedenen Ebenen siehe Supported File Formats for Import and Export.

Funktionen

alle erweitern

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 (Seit 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

Themen