Hi I want to read a file line by line with crystal language, but I don't know how can I do that.
I read crystal documentation, but I couldn't find my answer.
It's my code:
system("ls /etc/NetworkManager/system-connections/ > Fox.txt")
file = File.read("Fox.txt")
system("sudo cat /etc/NetworkManager/system-connections/\'#{file}\' >> Fox_done.txt")