Dota 2 Workshop Tools/Scripting/API/Global.FileToString: Difference between revisions
< Dota 2 Workshop Tools | Scripting | API
Jump to navigation
Jump to search
RoyAwesome (talk | contribs) (Dota_Lebot push: Updated Page) |
m (→Returns) |
||
Line 30: | Line 30: | ||
== Returns == | == Returns == | ||
''string'' - | ''string'' - The string from the file |
Revision as of 12:08, 6 September 2014

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 - The string from the file