String Concatenation
Philldapill
Posts: 1,283
Is there any way to concatenate strings/integers? I'm writing some code that writes to an SD Card, and I have a feeling that I could write the data a whole lot faster if I first concatenate all the bits of data into a string, then write that string at once.
Anyway to squash integers, strings, and individual characters together into a single string?
Anyway to squash integers, strings, and individual characters together into a single string?
Comments
-Phil
bytemove(resultString + strsize(resultString),newString,strsize(newString)+1)
This copies a 2nd string (newString) onto the end of the 1st string's value (resultString). If you happen to have the lengths of the 2 strings, you can save some time by using those rather than getting it with each move.