Page 1 of 1

PostPosted: Mon Jul 22, 2002 4:12 pm
by Charles Strickland
All,

When I output the lines of a file using graphics (puts), I am getting a little suqare ate the end of each line of output. I am sure it's a cr or lf, but I cannot get rid of it. Any suggestions?

Charles

PostPosted: Tue Jul 23, 2002 12:30 pm
by guy
There are a variety of quaint inconsistencies in the handling of carriage return and linefeed (or perhaps newline) in the CE version of PocketC. The rule is "never trust it to do what you want, or what you expect it to do".

What you need to do is to get rid of the delimiters from the ends of the line once you've read it from the file, then use putsl() to write the line.

You'll probably need to get rid of both a CR and an LF.




Guy
[url]mailto:pcform@pcform.net[/url]
http://www.pcform.net
PocketC CE API interface: http://www.networkdynamics.net/PCForm.html#library
PCForm and CE API forum: http://www.networkdynamics.net/forum