Parameters
- source
Type: System.String
A string that represents the profile data.
You should remember that all ZennoPoster's structures, actions and methods uses the utf-8 encoding.
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.
| C# | Copy Code |
|---|---|
// 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); | |
| PHP | Copy Code |
|---|---|
// 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); | |
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven