Methods | This Package | All Packages

File Class

Implements access to files.

DataStream
  |
  +--File

package com.ms.wfc.io

public class File
extends
DataStream

Remarks

Provides the IDataStream interface for a file and also contains methods to perform file-, directory-, and path-oriented functions.

Instances of File can be created using the constructors in the class or the create, open, openRead, openStandardError, openStandardInput, or openStandardOutput static methods.

For a complete list of input/output (I/O) methods supported by a file, see the IByteStream and IDataStream interfaces.

The File class implements direct access to the underlying file with no buffering. If you are performing a large number of fairly small read or write operations, you can increase performance by putting a BufferedStream before the File object.

Errors that originate from the operating system while performing operations on a file are reported using the WinIOException class, which provides access to the underlying operating system error code.