Re: parsing a txt file
what do u mean, to strip the line feed ascii?? , i used the method
earlier posted by jason and it seems to work fine
thanks anyway :)
On Thu, 25 Nov 2004 15:15:43 +1100, Patrick Barnes <mrtrick at gmail.com> wrote:
>
> {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
>
>
|
Not Categorized, Please Help
|
|