James Maeding
Usenet Archive
- Joined
- Jul 7, 2003
- Messages
- 331
- Reaction score
- 0
Lets say I have a variable called Var1 and I want to obtain a string from that variable name. I know how to make a variable name from a string with (read "Var1"), but how do i go the other way?
I am trying to read string values from a text file and make a list of them. If I use (read (strcat "(" (read-line file) ")") it returns a nice list but the strings are considered variables in the list. Odd since numbers are detected... So I want to convert those variable names returned to strings.
I have other ways of doing this but a friend asked me and I didn't know the answer (not too suprising...) Any help appreciated. James Maeding Civil Engineer/Programmer
I am trying to read string values from a text file and make a list of them. If I use (read (strcat "(" (read-line file) ")") it returns a nice list but the strings are considered variables in the list. Odd since numbers are detected... So I want to convert those variable names returned to strings.
I have other ways of doing this but a friend asked me and I didn't know the answer (not too suprising...) Any help appreciated. James Maeding Civil Engineer/Programmer