我真的无法将两个(/三个)字符串连接起来。这些是我尝试过的一些代码:
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\-用户名-\Downloads\done.txt