Add lines from files to corresponding dictionaries
There are some ways you can improve your code:

Rather than building a dictionary and then manually assigning each value you can assign to l1[0] etc straight away.
Dict['dictio1'] = {'title': &quot;&quot;, &quot;name&quot;: &quot;&quot;, &quot;date&quot;: &quot;&quot;, &quot;feedback&quot;: &quot;&quot;}
Dict['dictio1'][&quot;title&quot;] = l1[0]
Dict['dictio1'][&quot;name&quot;] = l1[1]
Dict['dictio1'][&quot;date&quot;] = l1[2]
Dict['dictio1'][&quot;feedback&quot;] = l1[3]

Dict[&quot;dictio1&quot;] = {
    &quot;title&quot;: l1[0],
    &quot;name&quot;: l1[1],
    &quot;date&quot;: l1[2],
    &quot;feedback&quot;: l1[3],
}


You should use a for loop over the paths and have the with inside it. Only building one dictionary at a time.
for key, path in ...:
    with open(path) as f:
        lines = []
        for line in f:
            if not line.isspace():
                lines.append(line.rstrip())
        Dict[key] = {
            &quot;title&quot;: l1[0],
            &quot;name&quot;: l1[1],
            &quot;date&quot;: l1[2],
            &quot;feedback&quot;: l1[3],
        }


We can use a list comprehension to build lines with some sugar.
lines = [line.rstrip() for line in f if not line.isspace()]



Putting this all together we can get:
data = {}
paths = [
    (&quot;dictio1&quot;, &quot;C:/Users/user/Desktop/001.txt&quot;),
    (&quot;dictio2&quot;, &quot;C:/Users/user/Desktop/002.txt&quot;),
]
for key, path in paths:
    with open(path) as f:
        lines = [line.rstrip() for line in f if not line.isspace()]
        data[key] = {
            &quot;title&quot;: lines[0],
            &quot;name&quot;: lines[1],
            &quot;date&quot;: lines[2],
            &quot;feedback&quot;: lines[3],
        }

with open('file.json', 'w') as file_json:
    json.dump(data, file_json, indent=2)

I would recomend you change your JSON structure to remove the outer dictionary and instead use a list. This would make all your code simpler not only building it here but consuming it later.
This would look like:
data = []
paths = [
    &quot;C:/Users/user/Desktop/001.txt&quot;,
    &quot;C:/Users/user/Desktop/002.txt&quot;,
]
for path in paths:
    with open(path) as f:
        lines = [line.rstrip() for line in f if not line.isspace()]
        data.append({
            &quot;title&quot;: lines[0],
            &quot;name&quot;: lines[1],
            &quot;date&quot;: lines[2],
            &quot;feedback&quot;: lines[3],
        })

with open('file.json', 'w') as file_json:
    json.dump(data, file_json, indent=2)