IonicWind Software

IWBasic => General Questions => Topic started by: TexasPete on March 01, 2009, 06:49:41 AM

Title: reading a text file and possible comma problem
Post by: TexasPete on March 01, 2009, 06:49:41 AM
Lb has the ability to read a comma into the text string. Does the read in eb read in commas or does it read upto the comma and go to the next text input.

Thanks
Texas Pete
Title: Re: reading a text file and possible comma problem
Post by: Ionic Wind Support Team on March 01, 2009, 07:28:25 AM
Not enough information.  If you are reading text from an ASCII file then commas have nothing to do with anything.  A comma is just another ASCII character.
Title: Re: reading a text file and possible comma problem
Post by: TexasPete on March 02, 2009, 05:35:35 AM
Paul , I don't know what I am hunting for exactly. I think it is some hidden character that would truncate the reading of a line of text.
I have pinned it down to the fact that it is not reading the entire line of text. I have the textline string set to 13000 character.So I know that is not it.
Thanks
Texas Pete
I will keep looking.
Title: Re: reading a text file and possible comma problem
Post by: Rock Ridge Farm (Larry) on March 02, 2009, 05:39:39 AM
Might not be related to your problem but I have had strange results if the ',' sep. file had
any " or ' chars in it - seems to play hell with string data.

Just a thought.
Title: Re: reading a text file and possible comma problem
Post by: LarryMc on March 02, 2009, 06:12:56 AM
TexasPete

Show us the code and the file.

Then we can possibly help

Larry
Title: Re: reading a text file and possible comma problem
Post by: billhsln on March 02, 2009, 07:11:42 AM
If there is a Binary 00 in the file, that will really give text strings problems, since that is the end of string marker.

Bill
Title: Re: reading a text file and possible comma problem
Post by: TexasPete on March 02, 2009, 02:47:14 PM
Thanks larry and bill, I will look at it again and if I still can't see anything I will post code and see if you guys can see anything. Thanks all!
Title: Re: reading a text file and possible comma problem
Post by: TexasPete on March 02, 2009, 03:32:47 PM
sorry, I found out what the problem was a string array was not long enough and was cutting off the end of the string. I thank you so much for the feed back. It gives me something to watch out for in the future.
Thanks
Texas Pete