string.GetExtensionFromFilename

From GMod Wiki

Revision as of 09:29, 27 October 2009 by Unrealomega (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax string.GetExtensionFromFilename( String file )
Where is this used?
Description:
Returns the file extension.
Returns: String
Part of Library: String
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=String.GetExtensionFromFilename]String.GetExtensionFromFilename [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionWill output the file extension of a file.
Used onNewerShared.png
Code
Msg(string.GetExtensionFromFilename("ubercoolfolder/myfile.txt"))
OutputWill output "txt" in console.
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox