Skip to content
bbminfo – Learn from Scratch
Subjects Code examples Library reference
Computer Programming Python Java C++ C Go PHP Kotlin Ruby R Scala Groovy

Tutorial menu

Subjects

Computer Programming MathsPlanned ChemistryPlanned

Lesson contents

Programming resources

All languages Code examples Library reference

Programming languages

Python Java C++ C Go PHP Kotlin Ruby R Scala Groovy
Tutorials/Computer Programming/C++/Library/Files and paths

C++ files and paths

Build a receipt path, save a note, or read a shopping list.

std::fgetsstd::ftellstd::filesystem::copy_file

Browse by topic

  • Names and locations3
  • Read and write2
  • Manage files and folders6
  • Inspect files and storage3

Names and locations

  • filesystem path componentsPrint a receipt name and its folder
  • path::lexically_relativeLink a course handout to a diagram
  • std::filesystem::pathBuild a receipt path without hard-coded separators
Advertisements

Read and write

  • std::fgetsRead a saved shopping note
  • std::fputsSave an item to a grocery note

Manage files and folders

  • std::filesystem::copy_fileKeep a separate copy of a receipt
  • std::filesystem::create_directoriesPrepare nested hand-in folders
  • std::filesystem::directory_iteratorCount only the invoices in a folder
  • std::filesystem::recursive_directory_iteratorFind a receipt below the month folder
  • std::filesystem::removeClear a disposable print preview
  • std::filesystem::renamePublish a signed attendance sheet

Inspect files and storage

  • std::filesystem::is_regular_fileTell an uploaded file apart from its folder
  • std::filesystem::spaceCheck room for a class recording
  • std::ftellCheck a receipt attachment size

All C++ library sections

C++ tutorials

Environment setup› Library reference› Data structures› Code examples›
Advertisements
bbminfo – Learn from Scratch
© 2026 bbminfoArtwork creditsPrivacy policy