Dota 2 Workshop Tools/Scripting/API/Global.StringToFile: Difference between revisions
< Dota 2 Workshop Tools | Scripting | API
Jump to navigation
Jump to search
(Undo revision 184871 by RoyAwesome (talk)) |
RoyAwesome (talk | contribs) (Dota_Lebot push: Updated Page) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Note | This page is automatically generated. Any changes may be overwritten}} | {{Note | This page is automatically generated. Any changes may be overwritten}} | ||
[[Category:Dota2Function]] | |||
[[Category:Global]] | |||
== Function Description == | == Function Description == | ||
''' bool StringToFile(string ''a'', string ''b'') ''' | ''' bool StringToFile(string ''a'', string ''b'') ''' | ||
'' | ''* Directory traversal doesn't seem to work. The characters '.', '/' and '\\' are ignored. | ||
* The file name cannot be blank, nor can it consist only of the ignored characters, else the function will do nothing and return false. | |||
* Only one string can be stored at a time, the file is overwritten to at every call. | |||
* The file ends with a NUL character. | |||
* The files are stored at C:\Program Files (x86)\Steam\steamapps\common\dota 2 beta\dota_ugc\game\dota\ems | |||
* The function is used in conjunction with [[Dota_2_Workshop_Tools/Scripting/API/Global.FileToString|FileToString]]'' | |||
== Parameters == | == Parameters == | ||
Line 15: | Line 25: | ||
| string | | string | ||
| a | | a | ||
| | | No Description Set | ||
|- | |- | ||
| string | | string | ||
| b | | b | ||
| | | No Description Set | ||
|} | |} | ||
== Returns == | == Returns == | ||
''bool'' - | ''bool'' - No Description Set | ||
Latest revision as of 02:13, 17 June 2015

Function Description
bool StringToFile(string a, string b)
* Directory traversal doesn't seem to work. The characters '.', '/' and '\\' are ignored.
- The file name cannot be blank, nor can it consist only of the ignored characters, else the function will do nothing and return false.
- Only one string can be stored at a time, the file is overwritten to at every call.
- The file ends with a NUL character.
- The files are stored at C:\Program Files (x86)\Steam\steamapps\common\dota 2 beta\dota_ugc\game\dota\ems
- The function is used in conjunction with FileToString
Parameters
Type | Name | Description |
---|---|---|
string | a | No Description Set |
string | b | No Description Set |
Returns
bool - No Description Set