Posted 05 April 2013 - 02:12 PM
Hello,
i'm going to create a virtual drive program. and i need to convert the string paths to tables:
~InDieTasten
i'm going to create a virtual drive program. and i need to convert the string paths to tables:
function convertPathToTable(sPath)
return "thePartINeedYourHelp"
end
tTestPath = convertPathToTable("/homes/username/movies.idm")
--so tTestPath should be this:
tTestPath[1] = "homes"
tTestPath[2] = "username"
tTestPath[3] = "movies.idm"
i have an idea on how to do this by going through all characters. but i'm sure it's possible to do this shorter and easier with some pattern crap i didn't understand yet.~InDieTasten