FileHelper Class
Namespace: PTS.Files
Assembly: PTS.Files.dll
Syntax
public static class FileHelper
Inheritance
System.Object
FileHelper
Properties
RuntimeBasePath
Declaration
public static string RuntimeBasePath { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
DecodeBase64FileExtension(String)
Declaration
public static string DecodeBase64FileExtension(this string base64)
Parameters
Type | Name | Description |
---|---|---|
System.String | base64 |
Returns
Type | Description |
---|---|
System.String |
FileExists(String)
Declaration
public static bool FileExists(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path |
Returns
Type | Description |
---|---|
System.Boolean |
GetFileReadStream(String)
Declaration
public static FileStream GetFileReadStream(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path |
Returns
Type | Description |
---|---|
System.IO.FileStream |
TextFileToString(String)
Declaration
public static string TextFileToString(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path |
Returns
Type | Description |
---|---|
System.String |
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()