lua-users home
lua-l archive

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


2010/6/16  <kenk@heroesent.com>:
>   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"]]

The problem is in the way you write your data to the file. Several
people tried to explain how to use [[ and ]] instead of ", but there
seems to be a language barriere here. Please send us the code you use
to write to your data file, and we will fix it for you.