O'Reilly logo

C# for Java Developers by Adam Freeman, Allen Jones

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The File System

This section covers the classes that provide access to the file system. Creating, copying, and deleting files and directories are handled in Java by the java.io.File class. A slightly different approach is taken by .NET, but the end result is much the same. We end this section with a comparison of the Java and .NET file system methods.

Paths

The System.IO.Path class contains a series of static utility methods used to manipulate strings representing file and directory paths. With the exception of the GetTempFileName method, the Path class does not interact with the file system.

Although the Path class provides little functionality that can’t be achieved using string parsing and regular expressions, it is designed to provide cross-platform ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required