ZennoLab Assemblies Documentation
FromString Method
Example 

Type: System.String

A string that represents the profile data.

Loads the profile data from specified string.
Syntax
void FromString( 
   string source
)

Parameters

source

Type: System.String

A string that represents the profile data.

Remarks
You should remember that all ZennoPoster's structures, actions and methods uses the utf-8 encoding.
Example
The following example uses FromString method of profile. First of all it loads the data from file C:\profile.txt, after set this data to the current profile.
// load profile data from file C:\profile.txt
string data = System.IO.File.ReadAllText("C:\\profile.txt", Encoding.UTF8);
// set the profile data
project.Profile.FromString(data);
// load profile data from file C:\profile.txt
$data = System\IO\File::ReadAllText("C:\\profile.txt", System\Text\Encoding::UTF8);
// set the profile data
$project->Profile->FromString($data);
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

IProfile Interface
IProfile Members
ToString Method

Send Feedback