C# Class FileManager, OpenWorldGame

Datei anzeigen Open project: nottvlike/OpenWorldGame Class Usage Examples

Public Methods

Method Description
CreateDirectory ( string directory ) : void
CreateFileWithBytes ( string path, byte info, int length ) : void
CreateFileWithString ( string path, string info ) : void
DeleteDirectory ( string directoryPath ) : void
DeleteFile ( string path ) : void
GetFileSize ( FileSizeUnitType sizeType, long size ) : float
IsDirectoryExist ( string fullPath ) : bool
IsFileExist ( string fullPath ) : bool
LoadFileWithBytes ( string path, byte &content ) : void
LoadFileWithString ( string path ) : string

Method Details

CreateDirectory() public static method

public static CreateDirectory ( string directory ) : void
directory string
return void

CreateFileWithBytes() public static method

public static CreateFileWithBytes ( string path, byte info, int length ) : void
path string
info byte
length int
return void

CreateFileWithString() public static method

public static CreateFileWithString ( string path, string info ) : void
path string
info string
return void

DeleteDirectory() public static method

public static DeleteDirectory ( string directoryPath ) : void
directoryPath string
return void

DeleteFile() public static method

public static DeleteFile ( string path ) : void
path string
return void

GetFileSize() public static method

public static GetFileSize ( FileSizeUnitType sizeType, long size ) : float
sizeType FileSizeUnitType
size long
return float

IsDirectoryExist() public static method

public static IsDirectoryExist ( string fullPath ) : bool
fullPath string
return bool

IsFileExist() public static method

public static IsFileExist ( string fullPath ) : bool
fullPath string
return bool

LoadFileWithBytes() public static method

public static LoadFileWithBytes ( string path, byte &content ) : void
path string
content byte
return void

LoadFileWithString() public static method

public static LoadFileWithString ( string path ) : string
path string
return string