FileHelper Class

HD.Common

FileHelper Class Helper帮助文档
文件操作帮助类
Inheritance Hierarchy

SystemObject  HD.CommonFileHelper

Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public class FileHelper
Public Class FileHelper
public ref class FileHelper
type FileHelper =  class end

The FileHelper type exposes the following members.

Constructors

  NameDescription
Public methodFileHelper
Initializes a new instance of the FileHelper class
Top
Methods

  NameDescription
Public methodStatic memberCopyDir
指定文件夹下面的所有内容copy到目标文件夹下面
Public methodStatic memberDeleteFolder
递归删除文件夹目录及文件
Public methodEquals (Inherited from Object.)
Public methodStatic memberFileAdd
追加文件
Public methodStatic memberFileCoppy
拷贝文件
Public methodStatic memberFileCreate
Public methodStatic memberFileDel
删除文件
Public methodStatic memberFileMove
移动文件
Protected methodFinalize (Inherited from Object.)
Public methodStatic memberFolderCreate(String)
创建文件夹
Public methodStatic memberFolderCreate(String, String)
在当前目录下创建目录
Public methodStatic memberGetDirectoryLength
获取文件夹大小
Public methodStatic memberGetFileAttibe
获取指定文件详细属性
Public methodStatic memberGetFoldAll(String)
获取指定文件夹下所有子目录及文件
Public methodStatic memberGetFoldAll(String, String, String)
获取指定文件夹下所有子目录及文件(下拉框形)
Public methodGetHashCode (Inherited from Object.)
Public methodStatic memberGetPostfixStr
取后缀名
Public methodGetType (Inherited from Object.)
Public methodStatic memberListTreeShow(DirectoryInfo, Int32, String)
获取指定文件夹下所有子目录及文件函数
Public methodStatic memberListTreeShow(DirectoryInfo, Int32, String, String)
获取指定文件夹下所有子目录及文件函数
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodRead_Txt
Public methodStatic memberReadFile
读文件
Public methodToString (Inherited from Object.)
Protected methodWrite_Txt
Public methodStatic memberWriteFile
写文件
Top
See Also

Reference