Posted 31 August 2016 - 04:15 AM
So, say that the variable x=read(), and the user enters "Hello"
Is there any way to separate this into 5 strings"H" "e" "l" "l" "o" which can be used later in the program?
The only way I could think of would be using a function instead of a variable at the beginning, but then I'm not sure how the read() would initially be entered into it.
A bit of research found a "Split/Join" function in Lua, but I'm not sure whether or not it could do this.
Is there any way to separate this into 5 strings"H" "e" "l" "l" "o" which can be used later in the program?
The only way I could think of would be using a function instead of a variable at the beginning, but then I'm not sure how the read() would initially be entered into it.
A bit of research found a "Split/Join" function in Lua, but I'm not sure whether or not it could do this.