I've used an example from
By adding a new \newcommand as in the code below:
\documentclass{article}
\usepackage{etoolbox}
\newcounter{cnt}
\newcommand\textlist{}
\newcommand\settext[2]{%
\csdef{text#1}{#2}}
\newcommand\addtext[1]{%
\stepcounter{cnt}%
\csdef{text\thecnt}{#1}}
\newcommand\gettext[1]{%
\csuse{text#1}}
\newcounter{newcnt}
\newcommand\newtextlist{}
\newcommand\setnewtext[2]{%
\csdef{text#1}{#2}}
\newcommand\addnewtext[1]{%
\stepcounter{newcnt}%
\csdef{text\thenewcnt}{#1}}
\newcommand\getnewtext[1]{%
\csuse{text#1}}
\begin{document}
\addtext{one}
\addtext{two}
\addtext{three}
\settext{100}{one hundred}
This is text \gettext{1} and \gettext{3}, that is text \gettext{2}.
100 is \gettext{100}.\\
Add new info into newtext.
\addnewtext{four}
\addnewtext{five}
\addnewtext{six}
\setnewtext{100}{seven hundred}
This is newtext \getnewtext{1} and \getnewtext{3}, that is newtext \getnewtext{2}.
100 is \getnewtext{100}.\\
This is text \gettext{1} and \gettext{3}, that is text \gettext{2}.
100 is \gettext{100}.\\
\end{document}
The first call of gettext will give a correct answer: One, two, three.
But the second gettext will get data same as getnewtext above it: Four, Five, six.
How can I make it back as before which is One, Two, Three? Thank You.

\csdef{newtext#1}...and similarly for the othertext#1etc. in the second group. – cfr Feb 04 '16 at 04:01\textlistsupposed to do? It doesn't seem to do anything right now. – cfr Feb 04 '16 at 04:06