OpenPetra
Free Administration Software for Non-Profits
Ict.Common.IO.TFileHelper.Streams.FileHandling Class Reference

Helps in handling MemoryStreams and files. More...

Static Public Member Functions

static MemoryStream LoadFileIntoStream (string AFilePath)
 Loads a file into a MemoryStream object. More...
 
static void SaveStreamToFile (Stream AStream, string AFilePath)
 Saves a Stream into a file. More...
 

Detailed Description

Helps in handling MemoryStreams and files.

Member Function Documentation

◆ LoadFileIntoStream()

static MemoryStream Ict.Common.IO.TFileHelper.Streams.FileHandling.LoadFileIntoStream ( string  AFilePath)
inlinestatic

Loads a file into a MemoryStream object.

Parameters
AFilePathFilename (including Path) to read from.
Returns
A MemoryStream with the contents of the File specified in AFilePath .

◆ SaveStreamToFile()

static void Ict.Common.IO.TFileHelper.Streams.FileHandling.SaveStreamToFile ( Stream  AStream,
string  AFilePath 
)
inlinestatic

Saves a Stream into a file.

Parameters
AStreamThe Stream whose contens should be saved to the file.
AFilePathFilename (including Path) to write to.
Returns
void

The documentation for this class was generated from the following file: