In The Hand - .NET Components for Mobility
FileHelper Class
NamespacesInTheHand.IOFileHelper
Provides helper methods for the File class.
Declaration Syntax
C#Visual Basic
public static class FileHelper
Public NotInheritable Class FileHelper
Members
All MembersMethods



IconMemberDescription
AppendAllText(String, String)
Appends the specified string to the file, creating the file if it does not already exist.

AppendAllText(String, String, Encoding)
Appends the specified string to the file, creating the file if it does not already exist.

Beam(String)
Beam a file through the standard OBEX Push mechanism using IrDA or Bluetooth.

ReadAllBytes(String)
Opens a binary file, reads the contents of the file into a byte array, and then closes the file.

ReadAllLines(String)
Opens a text file, reads all lines of the file, and then closes the file.

ReadAllLines(String, Encoding)
Opens a file, reads all lines of the file with the specified encoding, and then closes the file.

ReadAllText(String)
Opens a text file, reads all lines of the file, and then closes the file.

ReadAllText(String, Encoding)
Opens a file, reads all lines of the file with the specified encoding, and then closes the file.

WriteAllBytes(String, array<Byte>[]()[])
Creates a new file, writes the specified byte array to the file, and then closes the file. If the target file already exists, it is overwritten.

WriteAllLines(String, array<String>[]()[])
Creates a new file, writes the specified string array to the file using the default encoding, and then closes the file. If the target file already exists, it is overwritten.

WriteAllLines(String, array<String>[]()[], Encoding)
Creates a new file, writes the specified string array to the file using the specified encoding, and then closes the file. If the target file already exists, it is overwritten.

WriteAllText(String, String)
Creates a new file, writes the specified string array to the file, and then closes the file. If the target file already exists, it is overwritten.

WriteAllText(String, String, Encoding)
Creates a new file, writes the specified string array to the file using the specified encoding, and then closes the file. If the target file already exists, it is overwritten.

Inheritance Hierarchy
Object
FileHelper
See Also

Assembly: InTheHand.WindowsMobile (Module: InTheHand.WindowsMobile) Version: 3.2.0.0