Méthode | Description | |
---|---|---|
AppendBytesToFile ( string filePath, byte bytes ) : void |
Appends bytes to a file in a safe way
|
|
AppendTextToFile ( string filePath, string fileText ) : void |
Appends text to a file in a safe way
|
|
ChangeUrlToFilePath ( string urlPath ) : string |
changes a url path to a system directory/file path
|
|
CreateDirectory ( string directoryPath, bool canOverride ) : void |
Creates a directory
|
|
CreateFile ( string filePath, bool canOverride, string defaultText ) : void |
Creates a file in a safe way
|
|
DeserializeFromBinary ( string filePath ) : object |
deserializes an object from binary format
|
|
DeserializeFromSoap ( string filePath ) : object |
deserializes an object from soap format
|
|
DeserializeFromXml ( string filePath, |
deserializes an object from xml format
|
|
GetAbsolutePath ( string mayBeRelativePath, string baseDirectory = null ) : string |
Returns the absolute path of the specified (relative) path with respect to the base directory
|
|
ReadBytesFromFile ( string filePath ) : byte[] |
Reads bytes from a file
|
|
ReadTextFromFile ( string filePath ) : string |
Reads text from a file
|
|
SerializeToBinary ( string filePath, object obj ) : void |
serializes an object to binary format
|
|
SerializeToSoap ( string filePath, object obj ) : void |
serializes an object to soap format
|
|
SerializeToXml ( string filePath, object obj, |
serializes an object to XML format
|
|
WriteBytesToFile ( string filePath, byte bytes ) : void |
Writes bytes to a file in a safe way
|
|
WriteTextToFile ( string filePath, string fileText ) : void |
Writes text to a file in a safe way
|
public static AppendBytesToFile ( string filePath, byte bytes ) : void | ||
filePath | string | |
bytes | byte | |
Résultat | void |
public static AppendTextToFile ( string filePath, string fileText ) : void | ||
filePath | string | |
fileText | string | |
Résultat | void |
public static ChangeUrlToFilePath ( string urlPath ) : string | ||
urlPath | string | |
Résultat | string |
public static CreateDirectory ( string directoryPath, bool canOverride ) : void | ||
directoryPath | string | |
canOverride | bool | |
Résultat | void |
public static CreateFile ( string filePath, bool canOverride, string defaultText ) : void | ||
filePath | string | |
canOverride | bool | |
defaultText | string | |
Résultat | void |
public static DeserializeFromBinary ( string filePath ) : object | ||
filePath | string | |
Résultat | object |
public static DeserializeFromSoap ( string filePath ) : object | ||
filePath | string | |
Résultat | object |
public static DeserializeFromXml ( string filePath, |
||
filePath | string | |
type | ||
subTypes | ||
Résultat | object |
public static GetAbsolutePath ( string mayBeRelativePath, string baseDirectory = null ) : string | ||
mayBeRelativePath | string | |
baseDirectory | string | |
Résultat | string |
public static ReadBytesFromFile ( string filePath ) : byte[] | ||
filePath | string | The file to be read |
Résultat | byte[] |
public static ReadTextFromFile ( string filePath ) : string | ||
filePath | string | The file to be read |
Résultat | string |
public static SerializeToBinary ( string filePath, object obj ) : void | ||
filePath | string | |
obj | object | |
Résultat | void |
public static SerializeToSoap ( string filePath, object obj ) : void | ||
filePath | string | |
obj | object | |
Résultat | void |
public static SerializeToXml ( string filePath, object obj, |
||
filePath | string | |
obj | object | |
type | ||
subTypes | ||
Résultat | void |
public static WriteBytesToFile ( string filePath, byte bytes ) : void | ||
filePath | string | |
bytes | byte | |
Résultat | void |
public static WriteTextToFile ( string filePath, string fileText ) : void | ||
filePath | string | |
fileText | string | |
Résultat | void |