I have multiple text files with file names under different names according to what they stand for but lets use the alphabet in to make it easier. I have these Text files:
a.txt
b.txt
c.txt
.....
and I then have JSON file’s that are associated to these files (where “a.txt” has “a.json”) and a number associated to that file within the JSON file.
.....
"file" : "a.txt"
"number : 15
.....
How could I shuffle the the file names, for example changing a.txt to b.txt and b.txt changes to another letter, whilst keeping the data on the JSON files up to date with the changes. I was thinking to make a script in Python, but I think JS would probably be more suited for a website implementation. Thankyou for any help I receive.