Resize
resize( num )
Resize string to have num characters. If decrease, drops extra chars. If increase, sets new chars to null ('\0', ASCII value 0).
// userText is "Help me!"
userText.resize(4); // Now "Help"
userText.size(); // Returns 4
Resize string to have num characters. If decrease, drops extra chars. If increase, sets new chars to null ('\0', ASCII value 0).
// userText is "Help me!"
userText.resize(4); // Now "Help"
userText.size(); // Returns 4