1

I have a method that creates files containing the name and age and writes, Example "name.txt" and the content is .. name-age .. would like to get this information from 10 .txt files and write in a single file, line after line

1 Answers1

1

You can iterate through files inside a directory. In each file you can iterate through lines and print them out.

Community
  • 1
  • 1
K. Khanda
  • 550
  • 4
  • 11