最佳答案
我有以下. txt文件:
MarcoPaoloAntonio
我想逐行读取它,并且对于每一行,我想为一个变量分配一个. txt行值。假设我的变量是$name,流程是:
$name="Marco"$name做一些任务$name="Paolo"