Skip to content

This script unites all the text files in a directory an writes them at just one file, puting a new line for each file added

License

Notifications You must be signed in to change notification settings

heltonx/uniteAllTextFilesInOne

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

uniteAllTextFilesInOne

This script unites all the text files in a directory an join them in one file, puting a new line for each file added..

This script must be placed at the same directory with all files you want to join and it will generate a new file called 'uniqueFile.txt' (with all the files of the directory inside)

Example:

File1.txt 'Content 1'

File2.txt 'Content 2'

File3.txt 'Content 3'

After run, the script will make a new text file:

uniqueFile.txt

'Content 1

Content 2

Content 3'

OBSERVATIONS: #Tested at Windows (Python 3.11.2) and Xubuntu (Python 3) In Windows, the script is writing the files in alphanumeri order (according the file name), but in Linux is writing in reverse order

About

This script unites all the text files in a directory an writes them at just one file, puting a new line for each file added

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages