Home >Backend Development >Python Tutorial >python opens the file, reads the file command line by line and executes it
python code:
Java code
import os
file = open ("cc.txt")
.system(line)
ruby code:
Java code
file = File.open("ttt.txt")
file.each_line do |line|
%x(scp #{line.cho mp} #{ line.replace("/","")})
end