C# Class PanGu.Framework.File

Afficher le fichier Open project: xuld/AI-Robot

Méthodes publiques

Méthode Description
DeleteFile ( string path, string fileName, bool recursive ) : void
GetFileLength ( string fileName ) : long

Get file length

ReadFileToStream ( String FileName ) : MemoryStream
ReadFileToString ( String FileName, Encoding encode ) : String
WriteLine ( String FileName, String str ) : void
WriteStream ( String FileName, MemoryStream In ) : void
WriteString ( String FileName, String str, Encoding encode ) : void

Method Details

DeleteFile() public static méthode

public static DeleteFile ( string path, string fileName, bool recursive ) : void
path string
fileName string
recursive bool
Résultat void

GetFileLength() public static méthode

Get file length
public static GetFileLength ( string fileName ) : long
fileName string
Résultat long

ReadFileToStream() public static méthode

public static ReadFileToStream ( String FileName ) : MemoryStream
FileName String
Résultat System.IO.MemoryStream

ReadFileToString() public static méthode

public static ReadFileToString ( String FileName, Encoding encode ) : String
FileName String
encode System.Text.Encoding
Résultat String

WriteLine() public static méthode

public static WriteLine ( String FileName, String str ) : void
FileName String
str String
Résultat void

WriteStream() public static méthode

public static WriteStream ( String FileName, MemoryStream In ) : void
FileName String
In System.IO.MemoryStream
Résultat void

WriteString() public static méthode

public static WriteString ( String FileName, String str, Encoding encode ) : void
FileName String
str String
encode System.Text.Encoding
Résultat void