Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只需要问一次...
& "," &有没有比我们一直使用的久经考验的更优雅的方式让您的输出以逗号分隔?
& "," &
print #myTextFileNumber, myValue1 & "," & myText2 & "," & myValue3
您正在寻找的命令是write
write
从帮助:
在写入文件时,Write # 语句在项目和字符串周围的引号之间插入逗号
在您的示例中,命令将是:
write #myTextFileNumber, myValue1 , myText2 , myValue3
如果将值存储在数组中,则可以使用join.
join