I'm trying to make a program that will save files written in c-text. my program will allow you to save your file in 6 slots. but my problem is, that i don't want to have to repeat the same code over and over again to make it save and load from the different list.
Saving to different lists pretty much has to involve repeating code, unfortunately. But loading from a list may or may not be possible to simplify, depending on how you do it. For example, to get LN for N=1 to 6, you can do expr(sub("L₁L₂L₃L₄L₅L₆",N,1)).