string.GetFileFromFilename

From GMod Wiki

Jump to: navigation, search
Function
Syntax string.GetFileFromFilename( String file )
Where is this used?
Description:
Returns the filename of a File.
Returns: String Filename
Part of Library: String
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=String.GetFileFromFilename]String.GetFileFromFilename [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionWill output the filename of a File from its Filename.
Used onNewerShared.png
Code
Msg(string.GetFileFromFilename("wukka/ubercoolfolder/myfile.txt"))
OutputWill output "myfile.txt" in console.


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox