1/26
These flashcards cover key vocabulary and concepts related to input and output operations in C programming, as discussed in the lecture.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
Stream
Any source of input or destination for output in C programming.
Standard Input (stdin)
The stream from which input is read, usually the keyboard.
Standard Output (stdout)
The stream to which output is written, usually the screen.
Standard Error (stderr)
The stream for outputting error messages, usually the screen.
Text File
A file where bytes represent characters and can be human-readable.
Binary File
A file where bytes do not necessarily represent characters and have a defined format.
fopen
A function used to open a file and returns a pointer to a FILE structure.
fclose
A function that closes an opened file.
Buffering
Storing data in a memory area to enhance the performance of I/O operations.
FFlush
A function that flushes the output buffer for a stream.
fscanf
A function that reads formatted input from a specified stream.
fprintf
A function that writes formatted output to a specified stream.
getc
A function that reads a character from a specified stream.
fgets
A function that reads a line from a specified stream into a string.
sscanf
A function that reads formatted input from a string.
ftell
A function that returns the current file position of a stream.
fseek
A function that sets the position of the next read or write operation on a stream.
remove
A function that deletes a file.
rename
A function that changes the name of a specified file.
tmpfile
A function that creates a temporary file.
tmpnam
A function that generates a name for a temporary file.
EOF
End of file indicator, a negative integer value.
ferror
A function that checks if a read/write error has occurred on a stream.
feof
A function that checks if the end of the file has been reached.
Mode String
A string specifying the operations for opening a file, such as 'r', 'w', or 'a'.
File Pointer
A pointer indicating the file structure used to access a file.
Structure variable
Used to hold data that includes multiple variables.