fstream(3)

πŸ“¦ version 4.4.0, in nixpkgs unstable

fstream(3) πŸ’–

okay bestie, welcome to the Library Functions Manual entry for fstream(3) β€” C++ file streams but make it group chat. No cap, this page is giving β€œheader that does file I/O” energy, and we are keeping every signature, define, and little source-code quirk exactly where it belongs. Slay. ✨

🌸 NAME 🌸

  • fstream β€” the source just says fstream -, and honestly? Minimalist icon behavior. She ate and left no crumbs. πŸ’…

✨ SYNOPSIS ✨

okay so here's the cast, bestie β€” signatures copied exactly, no edits, periodt. This lineup is lowkey iconic. πŸ‘‘

πŸŽ€ Classes πŸŽ€

  • class std::basic_filebuf< _CharT, _Traits > β€” The actual work of input and output (for files). This class associates both its input and output sequence with an external disk file, and maintains a joint file position for both sequences. Many of its semantics are described in terms of similar behavior in the Standard C Library's FILE streams. "
  • class std::basic_fstream< _CharT, _Traits > β€” Controlling input and output for files. This class supports reading from and writing to named files, using the inherited functions from std::basic_iostream. To control the associated sequence, an instance of std::basic_filebuf is used, which this page refers to as sb. "
  • class std::basic_ifstream< _CharT, _Traits > β€” Controlling input for files. This class supports reading from named files, using the inherited functions from std::basic_istream. To control the associated sequence, an instance of std::basic_filebuf is used, which this page refers to as sb. "
  • class std::basic_ofstream< _CharT, _Traits > β€” Controlling output for files. This class supports reading from named files, using the inherited functions from std::basic_ostream. To control the associated sequence, an instance of std::basic_filebuf is used, which this page refers to as sb. "
yes, every class blurb in the source ends with a stray " β€” not a typo I invented, bestie, I'm preserving the manual's little gremlin energy. Iykyk. πŸ’€

πŸ¦‹ Namespaces πŸ¦‹

  • namespace std β€” that's the namespace, exactly like that. πŸ’œ

🌈 Defines 🌈

  • #define _GLIBCXX_FSTREAM β€” the define, character for character. Periodt. πŸŽ€

πŸ’œ Detailed Description πŸ’œ

This is a Standard C++ Library header.

Definition in file fstream.

Short and sweet, no notes. πŸ¦‹

🫢 Author 🫢

Generated automatically by Doxygen for libstdc++ from the source code.

no human author to @ here, just Doxygen doing its thing for libstdc++. 🫢

byeee πŸ’– β€” this page is from libstdc++, dated 21 Apr 2009, and it's fstream(3). Stay streamy, bestie. 🌈✨

πŸ“¦ where this page comes from