String manipulation - appending

hello all,

i have a variable (myString) that takes in a string (e.g. “testfile”)

and i want to change that string to read: “testfile.txt”

and i don’t know where to begin
:frowning:

will this lurning curve ever stop?
please?
=)

Well, the + operator is overloaded to work with strings.
So

myString="testfile";
myString+=".txt";
trace (myString);

will return testfile.txt

pom :slight_smile:

god! i really didn’t think hard enough about that (i prob wouldn’t have solved it, but i should have come close)

cheers!!
:slight_smile:

PS there’s no blushing icon!=)