|
|
Creado por apupkevich95
hace casi 10 años
|
|
| Pregunta | Respuesta |
| "r" | opens an existing file for reading only |
| "w" | creates and opens a new file for writing |
| "a" | opens an existing file for writing |
| "r+" | opens an existing file for reading and writing |
| "w+" | creates a new file for reading and writing |
| "a+" | opens and existing file for writing and allows reading |
| FILE | special type that establishes the buffer |
| ptvar | pointer that points to the beginning of the buffer |
| buffer | amount of memory space allocated inside the computer memory |
| Stream files | character files non-formatted files |
| fopen() | associates a buffer to a data file |
| fclose() | closes a file by terminating the buffer |
| fputc() | writes a character into a file fputc ( 'b' , ptvar ); |
| fgetc() | reads a character from a file c = fgetc (ptvar); |
| fputs() | writes a string into a file fputs(name , ptvar); |
| fgets() | reads a string from a file fgets(name, max_size_name, ptvar); |
| fprintf() | writes into a file according to format specifiers |
| fscanf() | reads from a file according to format specifiers |
| fread() | reads a data block from a non-formatted file |
| fwrite() | writes a data block into a non-formatted file |
| feof() | returns "true" if EOF character is read |
| ferror() | returns "true" if an error occurs |
| fseek() | searches for a specific byte in the buffer |
¿Quieres crear tus propias Fichas gratiscon GoConqr? Más información.