#####  [ cppreference.com ](/)

[ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Fio "You are
encouraged to log in; however, it is not mandatory \[o\]")

#####  Namespaces

  * [ Page ](/w/cpp/io "View the content page \[c\]")
  * [ Discussion ](/w/Talk:cpp/io "Discussion about the content page \[t\]")

#####  Variants

#####  Views

  * [ View ](/w/cpp/io)
  * [ Edit ](/mwiki/index.php?title=cpp/io&action=edit "You can edit this page. Please use the preview button before saving \[e\]")
  * [ History ](/mwiki/index.php?title=cpp/io&action=history "Past revisions of this page \[h\]")

#####  Actions

#  Input/output library

From cppreference.com

< [ cpp ](/w/cpp "cpp")

[ C++ ](/w/cpp "cpp")

[ Compiler support ](/w/cpp/compiler_support "cpp/compiler support")  
---  
[ Freestanding and hosted ](/w/cpp/freestanding "cpp/freestanding")  
[ Language ](/w/cpp/language "cpp/language")  
[ Standard library ](/w/cpp/standard_library "cpp/standard library")  
[ Standard library headers ](/w/cpp/header "cpp/header")  
[ Named requirements ](/w/cpp/named_req "cpp/named req")  
[ Feature test macros ](/w/cpp/feature_test "cpp/feature test") (C++20)  
[ Language support library ](/w/cpp/utility#Language_support "cpp/utility")  
[ Concepts library ](/w/cpp/concepts "cpp/concepts") (C++20)  
[ Metaprogramming library ](/w/cpp/meta "cpp/meta") (C++11)  
[ Diagnostics library ](/w/cpp/error "cpp/error")  
[ General utilities library ](/w/cpp/utility "cpp/utility")  
[ Strings library ](/w/cpp/string "cpp/string")  
[ Containers library ](/w/cpp/container "cpp/container")  
[ Iterators library ](/w/cpp/iterator "cpp/iterator")  
[ Ranges library ](/w/cpp/ranges "cpp/ranges") (C++20)  
[ Algorithms library ](/w/cpp/algorithm "cpp/algorithm")  
[ Numerics library ](/w/cpp/numeric "cpp/numeric")  
[ Localizations library ](/w/cpp/locale "cpp/locale")  
**Input/output library**  
[ Filesystem library ](/w/cpp/filesystem "cpp/filesystem") (C++17)  
[ Regular expressions library ](/w/cpp/regex "cpp/regex") (C++11)  
[ Concurrency support library ](/w/cpp/thread "cpp/thread") (C++11)  
[ Technical specifications ](/w/cpp/experimental "cpp/experimental")  
[ Symbols index ](/w/cpp/symbol_index "cpp/symbol index")  
[ External libraries ](/w/cpp/links/libs "cpp/links/libs")  
  
[ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/navbar_content&action=edit)

**Input/output library**

[ I/O manipulators ](/w/cpp/io/manip "cpp/io/manip")  
---  
[ Print functions ](/w/cpp/io#Print_functions_.28since_C.2B.2B23.29 "cpp/io")
(C++23)  
[ C-style I/O ](/w/cpp/io/c "cpp/io/c")  
Buffers  
[ basic_streambuf  ](/w/cpp/io/basic_streambuf "cpp/io/basic streambuf")  
[ basic_filebuf  ](/w/cpp/io/basic_filebuf "cpp/io/basic filebuf")  
[ basic_stringbuf  ](/w/cpp/io/basic_stringbuf "cpp/io/basic stringbuf")  
[ basic_spanbuf  ](/w/cpp/io/basic_spanbuf "cpp/io/basic spanbuf") (C++23)  
[ strstreambuf  ](/w/cpp/io/strstreambuf "cpp/io/strstreambuf") (  C++98/26*
)  
[ basic_syncbuf  ](/w/cpp/io/basic_syncbuf "cpp/io/basic syncbuf") (C++20)  
Streams  
Abstractions  
[ ios_base  ](/w/cpp/io/ios_base "cpp/io/ios base")  
[ basic_ios  ](/w/cpp/io/basic_ios "cpp/io/basic ios")  
[ basic_istream  ](/w/cpp/io/basic_istream "cpp/io/basic istream")  
[ basic_ostream  ](/w/cpp/io/basic_ostream "cpp/io/basic ostream")  
[ basic_iostream  ](/w/cpp/io/basic_iostream "cpp/io/basic iostream")  
File I/O  
[ basic_ifstream  ](/w/cpp/io/basic_ifstream "cpp/io/basic ifstream")  
[ basic_ofstream  ](/w/cpp/io/basic_ofstream "cpp/io/basic ofstream")  
[ basic_fstream  ](/w/cpp/io/basic_fstream "cpp/io/basic fstream")  
String I/O  
[ basic_istringstream  ](/w/cpp/io/basic_istringstream "cpp/io/basic
istringstream")  
[ basic_ostringstream  ](/w/cpp/io/basic_ostringstream "cpp/io/basic
ostringstream")  
[ basic_stringstream  ](/w/cpp/io/basic_stringstream "cpp/io/basic
stringstream")  
Array I/O  
[ basic_ispanstream  ](/w/cpp/io/basic_ispanstream