Garry's Mod Wiki

History for string.GetExtensionFromFilename

Revision Difference


<function name="GetExtensionFromFilename" parent="string" type="libraryfunc"> <description>Returns extension of the file.</description> <realm>Shared and Menu</realm> <file line="122">lua/includes/extensions/string.lua</file> <args> <arg name="file" type="string">String eg. file-path to get the file extensions from.</arg> </args> <rets> <ret name="" type="string">fileExtension</ret> </rets> </function> {{Example | Description = Prints the extension of the file. | Code = print(string.GetExtensionFromFilename("garrysmod/lua/modules/string.lua")) | Output = <example> <description>Prints the extension of the file.</description> <code>print(string.GetExtensionFromFilename("garrysmod/lua/modules/string.lua"))</code> <output>lua</output> </example> lua }}

Special Pages



Render Time: 65ms

DB GetPage 48
Get RevNew 5
Get RevOld 4
Render Body 0
Render Sidebar 6