string.GetExtensionFromFilename
From GMod Wiki
Revision as of 09:29, 27 October 2009 by Unrealomega (Talk | contribs)
Function | |
Syntax |
string.GetExtensionFromFilename( String file ) Where is this used? |
Description: | |
Returns the file extension. | |
Returns: | String |
Part of Library: | String |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=String.GetExtensionFromFilename]String.GetExtensionFromFilename [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Will output the file extension of a file. |
---|---|
Used on | |
Code | Msg(string.GetExtensionFromFilename("ubercoolfolder/myfile.txt")) |
Output | Will output "txt" in console. |