lua-users home
lua-l archive

Re: Real simple question about strings...

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


kenk@heroesent.com wrote:
Ya, I was trying that... but how do I insert a variable in between the [[ ]] ... everything inside that becomes a literal string. I know I could write out to file [[ and then the file path and then ]] ...But how do you get, for instance...
filePath = "C:\\apples\\boo\\test.boo";
copyFile = [[ filePath ]];
So that copyFile becomes: [["C:\apples\boo\test.boo"]]
Read string.format very carefully...
--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia

AltStyle によって変換されたページ (->オリジナル) /