Re: parsing a txt file
- Posted by Jason Gade <jaygade at yahoo.com> Nov 25, 2004
- 682 views
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.