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
  • Creating and deleting files

    C# SELF
    40 level,0 lecture
    A practical guide to creating and deleting files in .NET: quick ops with the static class File, working with instances via FileInfo, building directory structures using Directory and Path, safe deletion ( Delete) and existence checks ( Exists), exception handling and common pitfalls. All with clear examples.
    Open
  • Creating and deleting directories ( Directory)

    C# SELF
    40 level,1 lecture
    In this lecture you'll learn how to create and delete folders in .NET using the static class Directory: we'll cover Directory.CreateDirectory (including recursive creation), existence checks via Directory.Exists, working with DirectoryInfo, safe deletion with Directory.Delete and the recursive: true parameter, as well as proper path building via Path.Combine and error handling ( UnauthorizedAccessException, IOException).
    Open
  • Copying files and directories

    C# SELF
    40 level,2 lecture
    In this lecture we'll go through the practice of copying: from simple file copying via File.Copy and FileInfo.CopyTo to recursive directory copying using Directory.GetFiles, Directory.GetDirectories, Directory.CreateDirectory and safe path building with Path.Combine. We'll talk about error handling, overwriting ( overwrite: true), pitfalls (locks, permissions, path length) and how not to get a StackOverflowException when copying a folder "into itself".
    Open
  • Moving files and directories

    C# SELF
    40 level,3 lecture
    In this lecture we'll go over how to move and rename files and folders in .NET: the static methods File.Move, Directory.Move and the instance methods FileInfo.MoveTo, DirectoryInfo.MoveTo. We'll talk about name conflicts, access rights, cross-volume moves and best practices with System.IO.Path. All with clear examples and practical tips.
    Open
  • Mass operations with files

    C# SELF
    40 level,4 lecture
    A hands-on lecture about how to perform mass operations with files and folders in .NET: enumerating with Directory.GetFiles(), working with paths via Path, copying and moving using File.Copy/ File.Move, recursive directory copying, filtering with LINQ and walking nested directories with SearchOption.AllDirectories. We'll talk about security, overwrites ( overwrite: true) and error handling ( try- catch) so your code handles hundreds or thousands of files confidently.
    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