JavaRush
AI Academy
new
Promotion
Learning
Courses
Tasks
Quizzes
Games
Help
Schedule of nudges
Internship
Community
Users
Forum
Chat
Articles
Activities
Reviews
Subscriptions
Light theme

Lectures

  • Reviews
  • About us
  • CS50
Start
Start learning
Start learning
  • My progress
  • Courses
  • Quest map
  • Lectures
  • Static classes File and Directory

    C# SELF
    39 level,0 lecture
    In this lecture you'll learn how to quickly perform common file and folder operations using the static classes File and Directory: check existence, read/write "all at once", copy, move, delete, search by pattern and traverse directories recursively. We'll cover when to pick File/ Directory methods vs stream APIs, how to safely build paths with Path.Combine, and the errors you'll see most often (permissions, path length, races) — with practical examples and advice on try-catch.
    Open
  • Instance classes FileInfo and DirectoryInfo

    C# SELF
    39 level,1 lecture
    In this lecture we'll go through how the instance classes FileInfo and DirectoryInfo differ from the static File and Directory, how to get metadata about files and folders, copy, move and delete objects, and when to use GetFiles()/ EnumerateFiles() and refresh cached properties with Refresh(). All with examples and practical tips.
    Open
  • Getting information about files and directories

    C# SELF
    39 level,2 lecture
    In this lecture we'll go over how to get and analyze file and folder metadata in .NET: path, name, extension, size, timestamps and attributes. We'll get familiar with the FileInfo and DirectoryInfo classes, the FileAttributes enum, search methods (GetFiles, EnumerateFiles) and recursive traversal with SearchOption.AllDirectories. In practice we'll learn to format sizes, group by extensions, calculate total directory size and search files by dates and flags.
    Open
  • Comparing approaches File vs FileInfo

    C# SELF
    39 level,3 lecture
    In this lecture we'll compare two approaches to working with the file system in .NET: static utilities ( File/ Directory) and the object API ( FileInfo/ DirectoryInfo). We'll go through real scenarios, metadata caching, performance on bulk operations, unique capabilities of each API and practical recommendations with common mistakes.
    Open
  • The Path class — your helper when working with paths

    C# SELF
    39 level,4 lecture
    In this lecture we go over the static class System.IO.Path: how to safely build paths ( Combine), extract parts of a path ( GetFileName, GetExtension), change extensions ( ChangeExtension), get full paths ( GetFullPath), work with separators and temp files. Fewer bugs, more cross-platform compatibility!
    Open
Courses
  • Java Course
  • Python Course
  • Development with Claude Code
  • All 16 courses
University
  • Java FullStack
  • Python FullStack
  • AI Native Developer
  • Web FullStack
Community
  • Articles
  • Forum
  • Help with Tasks
Company
  • About us
  • Contacts
  • Reviews
  • Pricing
  • Questions and answers
JavaRush JavaRush: online courses in Java and other programming languages, where you learn by solving tasks. We started in 2012 with a Java course, and today there are 16 courses: Java and Spring, Python, web development, SQL, Go, C#, C++, Kotlin, Swift, Docker and AI development. More than 10,000 tasks with instant checks, and the first level of any course is free. Learn on your own or with a mentor at JavaRush University.
Follow us
Язык интерфейса
Русский
English
Українська
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy
MastercardVisa
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy