Re: parsing a txt file
- Posted by spent memory <spent.memory at gmail.com> Nov 25, 2004
- 692 views
thanx man On Wed, 24 Nov 2004 20:14:22 -0800, Jason Gade <guest at rapideuphoria.com> wrote: > > posted by: Jason Gade <jaygade at yahoo.com> > > > spent memory 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 > > > > > use > > var = value(in) > > in is your input, var will be a two-element sequence with the first element > being an error value and the second element being the number you are actually > interested in. > > Refer to the library reference for value. > > j. > > > >