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.

fgetsftellfread and fwrite

Browse by topic

  • Names and locations1
  • Read and write4
  • Manage files and folders6
  • Inspect files and storage3

Names and locations

  • strrchr for POSIX path componentsPrint a receipt name and its folder
Advertisements

Read and write

  • fgetsRead a saved shopping note
  • fputsSave an item to a grocery note
  • fseek and fgetcRead the third locker status
  • fwrite and freadRecover the brightest setting from a preset

Manage files and folders

  • fread and fwriteKeep a separate copy of a receipt
  • mkstempIsolate two simultaneous label previews
  • open with O_EXCLStop two desks claiming the same ticket
  • opendir and readdirCount only the invoices in a folder
  • renamePublish a signed attendance sheet
  • unlinkClear a disposable print preview

Inspect files and storage

  • fstatRead a receipt catalog card
  • fstat and statTell an uploaded file apart from its folder
  • 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