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 Rust Dart Mojo Zig Julia Swift C# JavaScript TypeScript

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 Rust Dart 🔥 Mojo Zig Julia Swift C# JavaScript TypeScript
Tutorials/Computer Programming/Groovy/Library/Files and paths

Groovy files and paths

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

Files.readStringFiles.sizeFiles.copy

Browse by topic

  • Names and locations2
  • Read and write3
  • Manage files and folders7
  • Inspect files and storage2

Names and locations

  • File.name and parentFilePrint a receipt name and its folder
  • Path.resolve and getFileNameBuild a receipt path without hard-coded separators
Advertisements

Read and write

  • File.bytesRecover the brightest setting from a preset
  • Files.readStringRead a saved shopping note
  • Files.writeStringSave an item to a grocery note

Manage files and folders

  • File.eachFileMatchCount only the invoices in a folder
  • File.eachFileRecurseFind a receipt below the month folder
  • File.mkdirsPrepare nested hand-in folders
  • Files.copyKeep a separate copy of a receipt
  • Files.deleteClear a disposable print preview
  • Files.movePublish a signed attendance sheet
  • Path.registerOpen and close an assignment subscription

Inspect files and storage

  • File.isFile and isDirectoryTell an uploaded file apart from its folder
  • Files.sizeCheck a receipt attachment size

All Groovy library sections

Groovy tutorials

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