Dota 2 Workshop Tools/Scripting/API/Global.FileToString: Difference between revisions
< Dota 2 Workshop Tools | Scripting | API
Jump to navigation
Jump to search
m ([FORGOT Summary] Brief description of parameter, added Notes to explain some of the functions behaviour) |
RoyAwesome (talk | contribs) (Dota_Lebot push: Updated Page) |
||
(4 intermediate revisions by 3 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 == | ||
''' string FileToString(string ''a'') ''' | ''' string FileToString(string ''a'') ''' | ||
''Reads a | ''Reads a string from a file to send to script | ||
* Directory traversal doesn't seem to work. The characters '.', '/' and '\\' are ignored. | |||
* The files are read from 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.StringToFile|StringToFile]] | |||
'' | |||
== Parameters == | == Parameters == | ||
Line 15: | Line 25: | ||
| string | | string | ||
| a | | a | ||
| | | No Description Set | ||
|} | |} | ||
== Returns == | == Returns == | ||
''string'' - | ''string'' - No Description Set | ||
Latest revision as of 02:12, 17 June 2015

Function Description
string FileToString(string a)
Reads a string from a file to send to script
- Directory traversal doesn't seem to work. The characters '.', '/' and '\\' are ignored.
- The files are read from C:\Program Files (x86)\Steam\steamapps\common\dota 2 beta\dota_ugc\game\dota\ems
- The function is used in conjunction with StringToFile
Parameters
Type | Name | Description |
---|---|---|
string | a | No Description Set |
Returns
string - No Description Set