lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] 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\\";
copyFile = [[ filePath ]];

So that copyFile becomes: [["C:\apples\boo\"]]

Read string.format very carefully...

Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia