1. Read Lines
Ruby
File.readlines("D:/a.txt").each { |i| print i }
with open("D:/a.txt","r") as f: for l in f.readlines(): print(l)
for l in readlines("D:/a.txt") print( l, "\n" ) end
댓글 없음:
댓글 쓰기