command_line() - convert a sequence to an atom value?

new topic     » topic index » view thread      » older message » newer message

I want to convert my program from prompting for user input to including this
input on the command line.  I have used the command_line() function to do
so, but have come across a small problem.

If my program prompts the user for the data from within the program:
	Enter the data :
	30
then then value 30 can be stored as an atom as declared.

But command_line() returns a sequence with the value {51,48} which cannot be
stored in my nice little atom.

So, I am looking at reworking my code to treat everything as a sequence, but
it would be a whole lot nicer if there happens to be a way of storing the
numerical value of the command_line() sequence {51,48} as 30 in my atom.

Any ideas?

Joel Garcia

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu