私の人生では、2 つ (または 3 つ) の文字列を連結することはできません。これらは私が試したいくつかのコードです:
dir := 'C:\Users\' + Username + '\Downloads\done.txt'; //"Username" is the computer's current username.
//another example vvv
dir := 'C:\Users\' + Username;
dir := dir + '\Downloads\done.txt';
//last example vvv
dir := Concat('C:\Users\', Username, '\Downloads\done.txt');
すべての例は、常に同じ結果を返します。
C:\Users\-ユーザー名-
一度もない:
C:\Users\-username-\Downloads\done.txt
ここで何が間違っていますか?