I have a folder containing several .txt
files I want converted into strings.
I want to convert each of them to strings, the output being either 1 file containing a single line of text for each file or a combination of all source files into 1 file where each source file is just 1 line of text.
Is there a way to do this with glob
or fnmatch
using the following code:
open("data.txt").read().replace('\n', '')