Reading string 00 from a file

2003-06-03 Thread Sockmonkey
My program writes string to a text file and reads them back in. I do it like this: print OUT $str\n; and then $str = IN; chomp($str); The problem is one of my strings is 00. It gets written out fine, but gets read in as 0. How can I stop this from happening? Thx -- To unsubscribe, e-mail:

Re: Reading string 00 from a file

2003-06-03 Thread Shlomi Fish
On Mon, 2 Jun 2003, Sockmonkey wrote: My program writes string to a text file and reads them back in. I do it like this: print OUT $str\n; and then $str = IN; chomp($str); The problem is one of my strings is 00. It gets written out fine, but gets read in as 0. How can I stop this from

Re: Reading string 00 from a file

2003-06-03 Thread Sockmonkey
The problem is one of my strings is 00. It gets written out fine, but gets read in as 0. How can I stop this from happening? Perl has no problem reading a string like this. Are you sure you don't add it with 0 or do something else numeric in between? It works for me.tm Ah, you are