lua-users home
lua-l archive

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


> > data =
> > "\000\020\005\123\ ... \233\245\255\123\234\142"
> > "\000\020\005\123\ ... \233\245\255\123\234\142"
> > ...
> > "\000\020\005\123\ ... \233\245"
> 
> 
> data =
> 	"\000\020\005\123\ ... \233\245\255\123\234\142" ..
> 	"\000\020\005\123\ ... \233\245\255\123\234\142" ..
> 	...
> 	"\000\020\005\123\ ... \233\245"
> 
> 
> .. concatenate.

Old habits die hard. Try the following which I think will be much more
efficient:

String = table.concat{
 	"\000\020\005\123\ ... \233\245\255\123\234\142" ,
 	"\000\020\005\123\ ... \233\245\255\123\234\142" ,
 	...
 	"\000\020\005\123\ ... \233\245"
}

http://lua-users.org/wiki/TableLibraryTutorial