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
Asked
Active
Viewed 56 times
1
-
use file append concept when you finished writing from a file and loop through all files. – SmashCode Apr 16 '17 at 08:49
1 Answers
1
You can iterate through files inside a directory. In each file you can iterate through lines and print them out.