Shared Flashcard Set

Details

Systems Terms: File I/O
Terms from Lecture 9 of my Systems class
6
Computer Science
Graduate
02/26/2025

Additional Computer Science Flashcards

 


 

Cards

Term
What does r+ do?
Definition
Open for read and write, file must exist
Term
What does w+ do?
Definition
Open for read and write, file created if it does not exist
Term
Once you've reached the end of a file, what can you do to loop through it again?
Definition
rewind(file)
Term
puts and fputs
Definition
puts -- put a string to your terminal
fputs -- put a string in your file
Term
fprintf
Definition
Writes to a file or stderr
Term
What is fflush, two uses
Definition
-- fflush() empties a file's buffer
-- Used to print text to the terminal that
you want displayed immediately
-- Ensures data has been written to a file
Supporting users have an ad free experience!