Interface IFileManager
Files manager interface.
Namespace: EduCATS.Helpers.Files
Assembly: EduCATS.dll
Syntax
public interface IFileManager
  Methods
Append(string, string)
Append to file.
Declaration
void Append(string path, string data)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | path | File path.  | 
      
| string | data | Contents to append.  | 
      
Create(string)
Create file.
Declaration
void Create(string path)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | path | File path.  | 
      
Delete(string)
Delete file.
Declaration
void Delete(string path)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | path | File path.  | 
      
Exists(string)
Check if file exists.
Declaration
bool Exists(string path)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | path | File path.  | 
      
Returns
| Type | Description | 
|---|---|
| bool | 
  | 
      
GetFileSize(string)
Get file size in MB.
Declaration
double GetFileSize(string path)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | path | File path.  | 
      
Returns
| Type | Description | 
|---|---|
| double | File size (MB).  | 
      
Read(string)
Get file contents.
Declaration
string Read(string path)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | path | File path.  | 
      
Returns
| Type | Description | 
|---|---|
| string | File contents.  | 
      
ReadDemoEmbeddedResource(string, string)
Get demo embedded resource contents.
Declaration
string ReadDemoEmbeddedResource(string file, string extension)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | file | Resource name.  | 
      
| string | extension | Extension (default is ).
 | 
      
Returns
| Type | Description | 
|---|---|
| string | Demo embedded resource contents.  |