La traducción de esta página está obsoleta. Haga clic aquí para ver la última versión en inglés.
E/S de archivo de bajo nivel
Leer y escribir operaciones a nivel de byte o carácter
Funciones
fclose |
Close one or all open files |
feof |
Test for end of file |
ferror |
File I/O error information |
fgetl |
Read line from file, removing newline characters |
fgets |
Read line from file, keeping newline characters |
fileread |
Read contents of file as text |
fopen |
Open file, or obtain information about open files |
fprintf |
Write data to text file |
fread |
Read data from binary file |
frewind |
Move file position indicator to beginning of open file |
fscanf |
Read data from text file |
fseek |
Move to specified position in file |
ftell |
Current position |
fwrite |
Write data to binary file |
Ejemplos y procedimientos
- Importar archivos de datos de texto con E/S de bajo nivel
Las funciones de E/S de archivos de bajo nivelpermiten el máximo control sobre la lectura o escritura de datos en un archivo.
- Import Binary Data with Low-Level I/O
Low-level file I/O functionsallow the most direct control over reading or writing data to a file.
- Exportar a archivos de datos de texto con E/S de bajo nivel
Este ejemplo muestra cómo crear archivos de texto, incluidas combinaciones de datos numéricos y de caracteres y archivos no rectangulares, mediante la función
fprintf
de bajo nivel. - Export Binary Data with Low-Level I/O
Low-level file I/O functionsallow the most direct control over reading or writing data to a file.
Conceptos
- Supported File Formats for Import and Export
Table of file formats that MATLAB®can read and write, and recommended functions.