lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, May 26, 2009 at 12:19 PM, Jeff Stone <stone1343@gmail.com> wrote:
> I'm thinking a function like this
>
> drive, path, filename, ext = ParseFilespec(arg[0])
>
> or even
>
> drive, path, filename, ext, separator, OS = ParseFilespec(arg[0])

pattern matching will get you most of the work.

-- 
Javier