Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

Files

Description

Bachelors C Programming (Files) Flashcards on Files, created by apupkevich95 on 30/04/2016.
apupkevich95
Flashcards by apupkevich95, updated more than 1 year ago
apupkevich95
Created by apupkevich95 about 9 years ago
1
0
1 2 3 4 5 (0)

Resource summary

Question Answer
"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
Show full summary Hide full summary

0 comments

There are no comments, be the first and leave one below:

Similar

Programming in C MindMap
Tejas Rao
Software
13jake.cooper
Online Documents.
RyanG
the genius files
nicholas.baraks
Social networking and E-Safety
Anya Revindharan
File management
Tiya Patel
Basic Python - Tuples and Files
Rebecca Noel
MIND MAP 1
vsolakis
Linked Lists WedW15
Kunall Banerjee
Linked Lists WedW15
Neyavanan v