Re: parsing a txt file
- Posted by Patrick Barnes <mrtrick at gmail.com> Nov 25, 2004
- 707 views
{50, 48, 10} is equal to "20\n" You need to do this: sequence junk junk = value( "20\n" ) myVar = junk[2] On Thu, 25 Nov 2004 14:06:32 +1000, spent memory <spent.memory at gmail.com> wrote: > > i am reading into my program a text file. in this text file i seek to > a certain line and assign 1 of my variables the value which happens to > be 20. however when i goto use this variable later i get a type check > failure saying the variable is {50,48,10}. I know this converts to 20 > but i have forgotten how to convert it so that i can use it. can > someone please remind me. thanks > > -- MrTrick