C++20 sections · 1024 units
Open in CourseQuiz: File I/O Patterns
Knowledge check
Check Your Understanding
What's the fastest way to copy an entire file in C++?
- A.Use out << in.rdbuf() to stream the buffer directly
- B.Read lines with getline() and write with <<
- C.Read and write character by character with get() and put()
- D.Read into a string with >> and write it back