Hey user group!
I had a question on how to create a scrip that would 1: loop through a folder that contains a bunch of scripts, copy the name of the script file and then copy the script itself below the name into a text file and keep concatenating the text file with all the scripts from the folder 2: Be able to read in the text from the text file and create new script files into a chosen folder. I can create the user interface side to choose what to do (save out or read in) and select the folders no problem but not sure on how to save the file name and script to the text file or read it in.
So for example the text file it would have crated would look like this:
script one
names default to here(1);
dt1=current data table();
script two
names default to here(1);
dt2=current data table();
script 3
names default to here(1);
dt3=current data table();
and when read would output three script files each containing the code that was under the file name in the text file.
Any suggestions would be appreciated.